Hi Daniel,
Thank you for providing the sample project.
After testing the project I was able to observe the issue in Chrome, although it is working as expected in Firefox. I am not sure why this was working in all browsers with the test page that I have previously tested.
Nevertheless, here is a modification of the client-side logic, which seems to fix the issue in all browsers with your project:
<
telerik:RadCodeBlock
ID
=
"RadCodeBlock1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
var shouldResetScroll = false;
function ResetGridPosition() {
shouldResetScroll = true;
}
function pageLoad() {
if (shouldResetScroll) {
var grid = $find("<%=RadGrid1.ClientID%>");
grid.ClientSettings.Scrolling.ScrollLeft = 0;
grid.ClientSettings.Scrolling.ScrollTop = 0;
var master = grid.get_masterTableView().get_element().parentNode;
master.scrollLeft = 0;
master.scrollTop = 0;
grid.updateClientState();
}
}
</
script
>
</
telerik:RadCodeBlock
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"btn_reset"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"RadGrid1"
UpdatePanelCssClass
=
""
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
div
>
<
table
cellpadding
=
"0"
cellspacing
=
"0"
class
=
"auto-style1"
>
<
tr
>
<
td
class
=
"auto-style2"
style
=
"vertical-align: top"
>
<
telerik:RadButton
ID
=
"btn_reset"
runat
=
"server"
Text
=
"Reset"
>
</
telerik:RadButton
>
</
td
>
<
td
>
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
GridLines
=
"Both"
AllowSorting
=
"true"
AllowPaging
=
"true"
PageSize
=
"30"
Width
=
"900px"
>
<
ClientSettings
>
<
Scrolling
AllowScroll
=
"True"
UseStaticHeaders
=
"True"
></
Scrolling
>
</
ClientSettings
>
</
telerik:RadGrid
>
</
td
>
</
tr
>
</
table
>
</
div
>
Please let me know if the above works on your end too.
Regards,
Konstantin Dikov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.