PDA

View Full Version : How to find last row in Sencha Grid?



offshoreteam
30 Sep 2013, 1:39 AM
I would like to highlight last row in Sencha Grid.
How to find last row as my data to grid is always dynamic.

Farish
30 Sep 2013, 2:46 AM
unless you are sorting the store on any field, the store's last record will be the one displayed last in the grid. you can use store.last() to get the last record. If you or the user sort, then you have to figure out another way.

daiei27
8 Apr 2014, 11:15 AM
Good point. Sorting screwed this up for me. Solution was to compare a row's rowIndex to gridstore.pageSize.