Hi,
I'm using a radgrid with custom paging & custom sorting. Custom sorting by clicking on headers works fine except that when I right click on the header and use the context menu to sort columns, it sorts them with natural sort and does not invoke my OnSortCommand server side callback.
How can I make the header context menu sorting use custom sorting?
I'm using a radgrid with custom paging & custom sorting. Custom sorting by clicking on headers works fine except that when I right click on the header and use the context menu to sort columns, it sorts them with natural sort and does not invoke my OnSortCommand server side callback.
<
telerik:RadGrid
ID
=
"SearchResultGrid"
AllowPaging
=
"True"
AllowCustomPaging
=
"true"
EnableViewState
=
"True"
AllowFilteringByColumn
=
"False"
AllowSorting
=
"true"
AllowNaturalSort
=
"false"
AllowCustomSorting
=
"true"
OnSortCommand
=
"SearchResultGrid_OnSort"
AutoGenerateColumns
=
"False"
runat
=
"server"
PageSize
=
"20"
EnableLinqExpressions
=
"false"
EnableAJAX
=
"false"
ItemStyle-Wrap
=
"false"
AlternatingItemStyle-Wrap
=
"false"
...>
<
HeaderContextMenu
OnItemClick
=
"HeaderContextMenu_ItemClick"
OnItemCreated
=
"HeaderContextMenu_ItemCreated"
OnPreRender
=
"HeaderContextMenu_PreRender"
>
<
CollapseAnimation
Duration
=
"200"
Type
=
"OutQuint"
/>
</
HeaderContextMenu
>
...
How can I make the header context menu sorting use custom sorting?