Results 1 to 3 of 3

Thread: Grid Horizontal Scrolling on Reconfigure

  1. #1
    Sencha User
    Join Date
    Apr 2007

    Default Grid Horizontal Scrolling on Reconfigure

    When a grid has many columns, and the grid is reconfigured, the entire grid scrolls to the extreme left.

    Is there any way I can save the grid's last horizontal scroll position? That way, I can scroll the grid back to where it was last by doing a ScrollByDeltaX.

    Alternatively, is there a better solution by which the grid's scroller's position can be saved and restored?

    Thanks in advance.

  2. #2
    Sencha - Support Team
    Join Date
    Jul 2010
    Houston, Tx


    Have a look at these:

    console.log(grid.getView().el.dom.scrollTop); // top scrollbar position
    console.log(grid.getView().el.dom.scrollLeft); // left

  3. #3
    Sencha Premium User
    Join Date
    May 2012


    Yes, you can get X position of your grid before changes, and set it back after reconfigure.
    But I would like to have a better desigion.

    Because this solution couse grid to "blink", you still can see the jump to x:0 position and back.
    It's better to totally turn x scroll off for a while.
    Can anybody advice something?

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