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

        Carlo Guglielmin created issue -
        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.
        Carlo Guglielmin made changes -
        Field Original Value New Value
        Assignee Nils Lundquist [ nils.lundquist ]
        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
        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
        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.
        Nils Lundquist made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        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
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s 3.2 [ 10338 ]
        Security Private [ 10001 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: