Hi all,
I am using Telerik RadGrid from Telerik.Web.UI (2008.2.826.35) assembly. I need to allow user to sort the data using only one column and highlight only this column. Hovewer, when grid highlights actual column (where sorting was applied by user) then the previous column (where sorting was applied before) remains to be highlighted. (see attachment).
I suspect that this is related to advanced sorting options, but setting flags bellow do not help (as described in the documentation).
AllowMultiColumnSorting="false" AllowNaturalSort="false" AllowCustomSorting="false"
I would be gratefull for any comments and suggestions. If there is a known bug in an old version of telerik assembly, please confirm it. (Looking through the demo examples on the telerik site with newer versions of rad grid, sorting highlight looks working fine).
Here is the code
I am using Telerik RadGrid from Telerik.Web.UI (2008.2.826.35) assembly. I need to allow user to sort the data using only one column and highlight only this column. Hovewer, when grid highlights actual column (where sorting was applied by user) then the previous column (where sorting was applied before) remains to be highlighted. (see attachment).
I suspect that this is related to advanced sorting options, but setting flags bellow do not help (as described in the documentation).
AllowMultiColumnSorting="false" AllowNaturalSort="false" AllowCustomSorting="false"
I would be gratefull for any comments and suggestions. If there is a known bug in an old version of telerik assembly, please confirm it. (Looking through the demo examples on the telerik site with newer versions of rad grid, sorting highlight looks working fine).
Here is the code
<
telerik:RadGrid
ID
=
"rgSubscriptions"
runat
=
"server"
ShowStatusBar
=
"false"
AllowAutomaticUpdates
=
"True"
GridLines
=
"None"
AllowPaging
=
"True"
PageSize
=
"10"
AllowSorting
=
"true"
AllowAutomaticDeletes
=
"True"
>
<
MasterTableView
TableLayout
=
"Fixed"
CellPadding
=
"0"
CellSpacing
=
"0"
DataKeyNames
=
"ID"
AutoGenerateColumns
=
"false"
AllowMultiColumnSorting
=
"false"
AllowNaturalSort
=
"false"
AllowCustomSorting
=
"false"
>
<
SortExpressions
>
<
telerik:GridSortExpression
FieldName
=
"DateAdded"
SortOrder
=
"Ascending"
/>
</
SortExpressions
>
<
Columns
>
<
telerik:GridTemplateColumn
SortAscImageUrl
=
"/AIMSGlobal/Images/sort_asc.gif"
SortDescImageUrl
=
"/AIMSGlobal/Images/sort_desc.gif"
ShowSortIcon
=
"true"
SortExpression
=
"DateAdded"
HeaderText
=
"Date"
>
<
HeaderStyle
Width
=
"100px"
/>
<
ItemTemplate
>
<%#GetDateFormatedString(Container.DataItem.DateAdded)%>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
DataField
=
"Subscription.DataProvider.Name"
HeaderText
=
"Data Provider"
AllowSorting
=
"True"
SortAscImageUrl
=
"/AIMSGlobal/Images/sort_asc.gif"
SortDescImageUrl
=
"/AIMSGlobal/Images/sort_desc.gif"
>
<
HeaderStyle
Width
=
"150px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Subscription.User.FullName"
HeaderText
=
"User"
AllowSorting
=
"True"
SortAscImageUrl
=
"/AIMSGlobal/Images/sort_asc.gif"
SortDescImageUrl
=
"/AIMSGlobal/Images/sort_desc.gif"
>
<
HeaderStyle
Width
=
"150px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Subscription.User.UserCompany.CompanyName"
HeaderText
=
"Company"
AllowSorting
=
"True"
SortAscImageUrl
=
"/AIMSGlobal/Images/sort_asc.gif"
SortDescImageUrl
=
"/AIMSGlobal/Images/sort_desc.gif"
>
<
HeaderStyle
Width
=
"150px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"ProviderExternalID"
HeaderText
=
"Login"
SortAscImageUrl
=
"/AIMSGlobal/Images/sort_asc.gif"
SortDescImageUrl
=
"/AIMSGlobal/Images/sort_desc.gif"
>
<
HeaderStyle
Width
=
"150px"
/>
</
telerik:GridBoundColumn
>
<
telerik:GridEditCommandColumn
UniqueName
=
"EditCommandColumn"
ButtonType
=
"ImageButton"
EditText
=
"Edit"
EditImageUrl
=
"\AIMSGlobal\IMAGES\EDIT.GIF"
>
<
HeaderStyle
Width
=
"50px"
/>
</
telerik:GridEditCommandColumn
>
</
Columns
>
<
EditFormSettings
UserControlName
=
"~/Controls/DataProviderRequest.ascx"
EditFormType
=
"WebUserControl"
>
<
EditColumn
UniqueName
=
"EditCommandColumn"
>
</
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
<
SortingSettings
SortedBackColor
=
"#216898"
/>
</
telerik:RadGrid
>
Thanks in advance,
Alexey