[CLOSED] [#1390] [4.1.0] Maintai Horizontale Scroll position in GridPanel After refresh

  1. #1

    [CLOSED] [#1390] [4.1.0] Maintai Horizontale Scroll position in GridPanel After refresh


    I have a gridpanel with horizontale scroll, If i scrolled horizontally and then refresh the store of the grid, the horizontal scroll go back to its first position. in other words it doesnt maintain the horizontale scroll position, it is reseted.

    You can check it in the Examples website: (https://examples4.ext.net/#/GridPane...rayWithPaging/)
    1- Try to resize the columns in order to have a horizontale scroll in the gridpanel
    2- click the refresh button in the paging toolbar that will reload the store and u will see the case of the horizontale scroll

    N.B this problem is not occuring in case of vertical scroll

    Thank you
    Last edited by fabricio.murta; Jan 13, 2017 at 3:47 AM.
  2. #2
    Hello @geovision!

    In parts the problem happens because the example you pointed does not showcase scroll preserving at all.

    You need to set PreserveScrollOnReload="true" and/or [b]PreserveScrollOnRefresh="true" in order to preserve the scroller position.

    But in fact, the column headers are not being preserved -- although the grid body is -- and a little investigation will need to take place before we can say what's happening.

    For the short term, I could find this piece of code that would help in that case. But the user would be able to see the column headers "flicker" after refreshing:

    <Refresh Handler="Ext.defer(function() { this.headerCt.scrollTo(this.getScrollX(), this.getScrollY()); }, 250, this);" />
    This refresh handler goes to your grid's view listeners!

    There probably is a better event to tie to the scroll fixing for this refresh/reload event issue, that will allow running the scroll sync without Ext.defer().

    We've logged this under #1390 in our issue tracker!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hello! We have just tested this issue on to-be-released Ext.NET 4.2.0 (based on ExtJS 6.2.1) and the issue is no longer reproducible!

    We're marking this as closed. If you test this when Ext.NET 4.2.0 is released and still can reproduce the issue, drop us a follow-up and we'll investigate it!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] horizontale scroll in gridpanel when viewport RTL true
    By Geovision in forum 4.x Legacy Premium Help
    Replies: 5
    Last Post: May 31, 2017, 7:13 PM
  2. Replies: 7
    Last Post: Mar 22, 2016, 7:48 PM
  3. Replies: 11
    Last Post: Aug 06, 2013, 5:29 AM
  4. [CLOSED] TreeGrid scroll position after refresh
    By agonzalez in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Mar 14, 2013, 3:14 PM
  5. [CLOSED] [1.2] GridPanel and Store reload scroll position?
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 17, 2011, 5:45 PM

Posting Permissions