Results 1 to 2 of 2

Thread: Auto scroll grid with selections

  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    60
    Vote Rating
    0
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

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