I have a scroll issue with Telerik control RadPanelBar. The page is on automatic refresh. On the refresh scroll page, RadPanelBar goes up. I handle this with JavaScript. Below image.

Below is the code. His work is great for dealer contacts, but not for staff. I try in the same way (method) to maintain the scroll position for staff.
<script type="text/javascript"> $(".rpSlide ul").scroll(function() { SaveStafftScrollPosition(); }); function SaveStaffScrollPosition(){ yPos = $(".rpSlide ul").scrollTop(); } function ReturnStaffScrollPosition() { $(".rpSlide ul").scrollTop(yPos); } function OnResponseEnd(sender ,eventArgs){ ReturnStaffScrollPosition(); } function OnRequestStart(sender ,eventArgs){ SaveStafftScrollPosition(); }
In HTML having a piece of code.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="OnRequestStart" ClientEvents-OnResponseEnd="OnResponseEnd" OnAjaxRequest="RadAjaxManager1_AjaxRequest"> //some code here </telerik:RadAjaxManager>
The problem is that he kept the scroll position to zero for staff when I scroll down. Why did he always keep the scroll position to zero for contacts with employees, even I scroll down to the middle / end?
source share