We have the following RadGrid
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
Visible
=
"true"
Width
=
"1260px"
Height
=
"445px"
AutoGenerateColumns
=
"False"
CssClass
=
"RadGridCustomClass"
CellSpacing
=
"0"
GridLines
=
"None"
OnPageIndexChanged
=
"RadGrid1_PageIndexChanged"
OnColumnCreated
=
"RadGrid1_ColumnCreated"
OnItemDataBound
=
"RadGrid1_ItemDataBound"
OnDetailTableDataBind
=
"RadGrid1_DetailTableDataBind"
OnPageSizeChanged
=
"RadGrid1_OnPageSizeChanged"
OnSortCommand
=
"RadGrid1_SortCommand"
OnItemCommand
=
"RadGrid1_ItemCommand"
OnPreRender
=
"RadGrid1_PreRender"
BorderStyle
=
"None"
>
<
ClientSettings
>
<
Scrolling
AllowScroll
=
"True"
UseStaticHeaders
=
"True"
SaveScrollPosition
=
"True"
EnableVirtualScrollPaging
=
"False"
/>
</
ClientSettings
>
<
MasterTableView
AutoGenerateColumns
=
"false"
DataKeyNames
=
"Emplid"
AllowPaging
=
"true"
AllowSorting
=
"True"
PageSize
=
"50"
TableLayout
=
"Fixed"
Width
=
"1410px"
CommandItemDisplay
=
"Top"
HierarchyLoadMode
=
"ServerOnDemand"
PagerStyle-Mode
=
"NextPrevNumericAndAdvanced"
PagerStyle-AlwaysVisible
=
"True"
AllowFilteringByColumn
=
"False"
AllowMultiColumnSorting
=
"False"
ExpandCollapseColumn-Visible
=
"False"
CommandItemSettings-ShowExportToWordButton
=
"False"
PagerStyle-Position
=
"Bottom"
PagerStyle-PageSizeLabelText
=
"Page Size:"
CommandItemStyle-Wrap
=
"True"
>
<
DetailTables
>
We also use ajax when expanding DetailsTable and paging.
The user scrolls down and expands a row and the scroll position is saved.
Then the user goes to the next page of the grid and the position is still saved. We would like the grid content to scroll to the top of the grid. Why is there not a built in way of doing this? Why not just add a to the control ScrollToTopOfGridOnPaging="True".
In lieu of this, how do we accomplish this task?
Edit: It does not matter if we do this on the server side or the client side.
Edit 2: updated post.