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

ilhan picture ilhan · Aug 8, 2011 · Viewed 29.9k times · Source

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

users.getSelectionModel().getSelections();

Answer

Mchl picture Mchl · Aug 8, 2011

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