I want to get the surname fields of the selected rows. This one does not work at all:
users.getSelectionModel().getSelections();
var selectedRecord = grid. getSelectionModel(). getSelection()[0]; var row = grid. store.
create('Ext. grid. Panel', { store: userStore, columns: ..., dockedItems: [{ xtype: 'pagingtoolbar', store: userStore, // same store GridPanel is using dock: 'bottom', displayInfo: true }] }); See the Paging Grid for a working example.
How about users.getSelectionModel().getSelection();
?
getSelections()
was used in ExtJS3. In ExtJS4, they decided to improve grammar a little it seems: ExtJS4 docs for Ext.selection.Model
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With