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

Scroll client-side to previous scroll location

3 Answers 83 Views
TileList
This is a migrated thread and some comments may be shown as answers.
jasper
Top achievements
Rank 1
jasper asked on 13 Jul 2016, 01:29 PM

We use the RadTileList on a RadTab panel as first tab item. When I click on a Tile a new tab is opened.

On leaving the RadTileList tab I would like to save the vertical scroll position and restore it when the RadTileList tab is visited again.

Any ideas how to accomplish this? I did not found any client-side methods for it.

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 13 Jul 2016, 02:24 PM

Hi Jasper,

You are right that there is no public API created for this purpose.

What I can suggest is that you use the dev toolbar of the browser to find the element that is scrolled, store its scrollTop and scrollLeft properties and restore them as needed. Depending on your setup, I suppose the OnClientTabSelecting and OnClientTabSelected events will be of use to store and restore the scroll position respectively.

Regards,

Marin Bratanov
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
jasper
Top achievements
Rank 1
answered on 14 Jul 2016, 10:39 AM

Hi Marin,

We would like to use it in combination with "Accelerated" scrolling.

0
Accepted
Marin Bratanov
Telerik team
answered on 14 Jul 2016, 10:58 AM

Hello,

The Accelerated scrolling uses the so-called TouchScrollExtender widget from our code. As the article states, it is recommended for use only on mobile devices, and nowadays scrolling there works great, so I would advise that you do not use this mode, because it does not offer any advantages over the built-in touch devices' capabilities. It was created ages ago when this was not the case.

That being said, what it does is modify the scrollTop and scrollLeft properties of the DOM element, so there shouldn't be a significant difference.

Regards,

Marin Bratanov
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
TileList
Asked by
jasper
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
jasper
Top achievements
Rank 1
Share this question
or