Page 4 of 4 FirstFirst ... 234
Results 31 to 35 of 35

Thread: Maintain Grid Scrollbar Position in EXTJS 4

  1. #31
    Sencha Premium Member
    Join Date
    Aug 2013
    Location
    Tbilisi, Georgia
    Posts
    41

    Default

    I have 2 grids with preserveScrollOnRefresh:true on both viewconfigs.scroll is working well while grid is focused, as soon as I select record in second grid first grid is reseting scroll on store loadData method.

  2. #32
    Sencha Premium Member
    Join Date
    Jun 2010
    Posts
    305

    Default

    Guys, i am using "checkcolumn" in a grid and when i check the checbox those are at the bottom of the grid, scroll moves to the top?Any one have solution to maintian scrollbar postion and prevent it to move to the top?Thanks

  3. #33
    Sencha Premium User
    Join Date
    Mar 2015
    Posts
    2

    Default

    Extjs 4.2.1 API, doesn't show this property invalidateScrollerOnRefresh : falseIs this deprecated?When editable grid is refreshed using refresh(), scrollbars of grid still jump to top. Is there any fix?

  4. #34
    Sencha Premium User
    Join Date
    Mar 2015
    Posts
    2

    Post Editable Grid scrollbars Jump to top whenever grid cell is edited.

    Extjs 4.2.1 API, doesn't show this property "invalidateScrollerOnRefresh : false" in viewConfig{ }
    Is this deprecated?


    When editable grid is refreshed using refresh(), scrollbars of grid still jump to top.
    Is there any fix?

    Steps logged in this link.
    https://www.sencha.com/forum/showthread.php?135062

  5. #35
    Sencha User
    Join Date
    Mar 2015
    Posts
    1

    Default

    Hi, just had the same problem, the following worked for me:

    gridView listeners (not grid listeners):
    Code:
    beforecellclick: 'obtenerPosicionScroll',
    cellclick: 'restaurarPosicionScroll'
    
    obtenerPosicionScroll: function(gridView) {
        this.posicionScroll = gridView.saveScrollState();
    },
    restaurarPosicionScroll: function(gridView) {
        gridView.restoreScrollState(this.posicionScroll);
    }
    I think you can forgive the language

Page 4 of 4 FirstFirst ... 234

Posting Permissions

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