Results 1 to 2 of 2

Thread: Best way to auto select first element in Grid

  1. #1
    Sencha User
    Join Date
    Apr 2010
    Posts
    3

    Default Answered: Best way to auto select first element in Grid

    Hello,

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

    Thanks

  2. 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.

  3. #2
    Sencha Premium User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    888
    Answers
    10

    Default

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •