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

        Hide
        Carlo Guglielmin added a comment -

        Assigning to Nils as per email thread.

        Show
        Carlo Guglielmin added a comment - Assigning to Nils as per email thread.
        Hide
        Nils Lundquist added a comment - - edited

        Revision #30686
        Committed by nils.lundquist
        6 minutes ago
        ICE-8536 - New unloading callback now leaves behind minimal state for persisting between client instances.

        Show
        Nils Lundquist added a comment - - edited Revision #30686 Committed by nils.lundquist 6 minutes ago ICE-8536 - New unloading callback now leaves behind minimal state for persisting between client instances.
        Hide
        Nils Lundquist added a comment -

        Revision #30685
        Committed by nils.lundquist
        14 minutes ago
        ICE-8536 - New unloading callback now leaves behind minimal state for persisting between client instances. Fixes scroll position persistence.

        Show
        Nils Lundquist added a comment - Revision #30685 Committed by nils.lundquist 14 minutes ago ICE-8536 - New unloading callback now leaves behind minimal state for persisting between client instances. Fixes scroll position persistence.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: