Question

I want to select similar records from grid1(account) and grid2(group) simultaneously.

Scenario : For example say that if group 1 has account A and B and group 2 has account C,D and E. A user selects account D . On the back automatically, group 2 and account C and E should get selected. If user selects group 1 and 2 then on the back all the five accounts should get selected.

Please help me resolve this.Thanks

Was it helpful?

Solution

How about looking at the docs? http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.selection.Model-method-select

grid.getSelectionModel().select(records)

OTHER TIPS

I have resolved my issue using :

grid.getSelectionModel().select(recordIndex,true);

Looking into another issue that,select event was not getting fired on CHECK ALL in grid with CheckboxModel() as selectionmodel. So I replaced select event listener with : http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.grid.Panel-event-selectionchange

selectionchange : function( thisobj, selected, eOpts)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top