PDA

View Full Version : Focus or Highlight Newly Added Data in grid.



nckenn
17 Jul 2014, 10:55 PM
good day everyone i just want know on how to focus or highlight row when added or updated new data after loaded the store :) thanks in advance. recently i used this code to highlight row
"grid.getSelectionModel().select(store.data.length-1);" but it fails when i sort.

israelroldan
24 Jul 2014, 3:52 AM
If you're using the store's listeners you should have a reference to the newly added records. You can just pass them as argument to the getSelectionModel().select method.