1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    58
    Vote Rating
    0
    varunjyoti is on a distinguished road

      0  

    Default Unanswered: Auto scroll grid with selections

    Hi

    I have a grid with scroll bars. There are some records in the grid.
    I am selecting a row using getSelectionModel.select() method. The specified row gets selected but if that row is at the bottom of the grid, or if it is below the viewable grid area, the scroll bar remians unmoved. So the selected row is not visible to the user. I want the selected row to be viewable to the user.

    Thanks

  2. #2
    Sencha - Senior Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    38,232
    Vote Rating
    1058
    Answers
    3647
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default

    You can use setScrollTop on Ext.grid.Scroller (4.0.7) or Ext.panel.Tabel (4.1.0) or do it via JS/CSS
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1