All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
void
RadGrid1_PreRender(
object
sender, EventArgs e)
{
if
(RadGrid1.MasterTableView.SortExpressions.Count > 0)
foreach
(GridSortExpression expression
in
RadGrid1.MasterTableView.SortExpressions)
GridHeaderItem headerItem = (GridHeaderItem)RadGrid1.MasterTableView.GetItems(GridItemType.Header)[0];
headerItem[expression.FieldName].BackColor = System.Drawing.Color.Red;
}
<
SortingSettings
SortedBackColor
=
"Red"
/>
Protected
Sub
clientGrid_PreRender(
ByVal
sender
As
Object
,
e
System.EventArgs)
Handles
clientGrid.PreRender
If
(clientGrid.MasterTableView.SortExpressions.Count > 0)
Then
For
Each
exp
GridSortExpression
In
clientGrid.MasterTableView.SortExpressions
Dim
headerItem
GridHeaderItem = TryCast(clientGrid.MasterTableView.GetItems(GridItemType.Header)(0), GridHeaderItem)
headerItem(exp.FieldName).ForeColor = Drawing.Color.White
Next
'for each
End
'if count > 0
'prerender