PDA

View Full Version : How to select the first row inside of grid, after ordered a store?



Mariachiextjs
14 Nov 2011, 5:27 AM
How can i selecte the first grid programatically withou mouse?

after sort the store

store.sort('CreatedOn', 'DESC');
Ext.single('#userGridPanel').getSelectionModel().select(0); //Doesnt Work, this line get the first item into store...


doenst exist a method like...

Ext.single('#userGridPanel').getSelectionModel().SelectFirstRow()?


Thank You Very Much

skirtle
14 Nov 2011, 8:07 AM
Which framework/version are you using?

Mariachiextjs
14 Nov 2011, 10:12 AM
ExtJS 4.0 only Js not Ext js

Mariachiextjs
14 Nov 2011, 10:13 AM
better Extjs 4.0.2