Search code examples
extjsextjs4

How to get selected rows of a grid panel in ExtJs?


I want to get the surname fields of the selected rows. This one does not work at all:

users.getSelectionModel().getSelections();


Solution

  • 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