I am running into issues when my dynamically bound grid has been sorted by Column A and on a post back, Column A is no longer present due to a user-preference change. I would like to clear the sorting if the column no longer exists so that I don't get an error on the page. Is there a way to do this?
Thanks!
Thanks!
<
telerik:RadGrid
ID
=
"rg"
runat
=
"server"
Skin
=
"Office2010Silver"
OnNeedDataSource
=
"rg_NeedDataSource"
OnItemCommand
=
"rgScores_ItemCommand"
>
<
ExportSettings
HideStructureColumns
=
"true"
/>
<
MasterTableView
AllowPaging
=
"true"
AllowSorting
=
"true"
Width
=
"100%"
CommandItemDisplay
=
"Top"
>
<
CommandItemSettings
ShowExportToExcelButton
=
"true"
ShowRefreshButton
=
"false"
ShowAddNewRecordButton
=
"false"
/>
</
MasterTableView
>
</
telerik:RadGrid
>