ICEfaces
  1. ICEfaces
  2. ICE-8536

ace:dataTable scroll state isn't saved between re-renders

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0, EE-3.0.0.GA, 3.1
    • Fix Version/s: EE-3.0.0.GA_P01, 3.2
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Any browser
    • Workaround Exists:
      Yes
    • Workaround Description:
      Without Ajax re-rendering the datatable the scroll position remains the same. Often not an option to remove f:ajax though.

      Description

      When an ace:dataTable has scrollable="true" and a re-render happens on the page (from f:ajax or ace:ajax, for example) the scrollbar will reset to the top of the viewport.

      This is an issue when custom editing or selection is done on the rows that prompts an f:ajax call. The user might be scrolled to the bottom of a big table, select a row, and have the scrollbar reset back to the top.

      Ideally the scroll state would be saved/restored by the ace:dataTable.

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #30730 Fri Sep 07 09:15:58 MDT 2012 nils.lundquist ICE-8536 - Minimal state no longer kept in window[this.cfg.widgetVar] as that var being cleared is required to register subsequent ice.onElementUpdate callbacks.
        Files Changed
        Commit graph MODIFY /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/ace/component/resources/icefaces.ace/datatable/datatable.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #30686 Wed Sep 05 10:45:45 MDT 2012 nils.lundquist ICE-8536 - New unloading callback now leaves behind minimal state for persisting between client instances.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/resources/icefaces.ace/datatable/datatable.js
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #30685 Wed Sep 05 10:36:27 MDT 2012 nils.lundquist ICE-8536 - New unloading callback now leaves behind minimal state for persisting between client instances. Fixes scroll position persistence.
        Files Changed
        Commit graph MODIFY /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/ace/component/resources/icefaces.ace/datatable/datatable.js

          People

          • Assignee:
            Nils Lundquist
            Reporter:
            Carlo Guglielmin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: