View Full Version : Best way to auto select first element in Grid

28 Mar 2012, 9:48 PM

Could you please tell me what is the best and most correct way to auto select first item in grid after loading


29 Mar 2012, 3:33 AM
There are so many ways of accomplishing this...
It is kinda hard to answer which is the best way... it all depends on your needs.

One simple way is to add a Load event listener to your store loaded (if you are using a loader).
If you are not using a loader, simply do a grid.getSelectionModel().select(0, false) after setting the items to it.