This is a migrated thread and some comments may be shown as answers.

Scroll to Top on Sheet Change

1 Answer 118 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
Wayne Hiller asked on 26 Apr 2017, 02:19 PM

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.

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 28 Apr 2017, 11:19 AM
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 selection methods of the Range object of the Spreadsheet:

http://docs.telerik.com/kendo-ui/api/javascript/spreadsheet/sheet#methods-selection

Below you can find a dojo example on such implementation:

http://dojo.telerik.com/@nenchef/uCIDIv/3


Regards,
Nencho
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 (charts) and form elements.
Tags
Spreadsheet
Asked by
Wayne Hiller
Top achievements
Rank 1
Veteran
Iron
Answers by
Nencho
Telerik team
Share this question
or