Scroll to Top on Sheet Change

2 posts, 0 answers
  1. Wayne Hiller
    Wayne Hiller avatar
    87 posts
    Member since:
    Sep 2005

    Posted 26 Apr 2017 Link to this post

    Is there a way to scroll to the top when the Active Sheet changes?

    Preferably also set the active cell.

    Currently if you have scrolled down a sheet and then change to another sheet the scroller stays in that scrolled down position. Seems to me like it should scroll back to the top of the new active sheet.

  2. Nencho
    Nencho avatar
    1886 posts

    Posted 28 Apr 2017 Link to this post

    Hello Wayne,

    You can use the jquery scrollTop method, in order to scroll the content of the sheet. In addition, for this usage you can handle the selectSheet event of the Spreadsheet:

    As for the active cell - you can use the select or selection methods of the Range object of the Spreadsheet:

    Below you can find a dojo example on such implementation:

    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top