PDA

View Full Version : Upgrading Grid Component



udayogra
2 Nov 2012, 1:57 AM
In previous versions of extjs grid.getSelectionModel().getSelected() used to return selected row. Now this method does not exist. What is the alternate way?


Similarly what is alternative of grid.getStore().getById(rowIndex)


Is there any proper documentation which lists down all possible changes in GRID component in version 4 and also suggests new ways of doing things. I am really struggling hard to upgrade our Grid component.

vietits
2 Nov 2012, 2:59 AM
In previous versions of extjs grid.getSelectionModel().getSelected() used to return selected row. Now this method does not exist. What is the alternate way?

- grid.getSelectionModel().getSelection() returns an array of selected records.
- grid.getSelectionModel().getLastSelected() returns last selected record.



Similarly what is alternative of grid.getStore().getById(rowIndex)

- grid.getStore().getById(recordId).
- grid.getStore().getAt(recordIndex).