Hello,
I would like to change the css of my filtered columns. I use the following code:
if (e.CommandName == RadGrid.HeaderContextMenuFilterCommandName)
{
Triplet arguments = e.CommandArgument as Triplet;
Pair filter1 = arguments.Second as Pair;
Pair filter2 = arguments.Third as Pair;
GridColumn column = (sender as RadGrid).MasterTableView.GetColumn(arguments.First.ToString());
if (filter1.First.ToString() == "NoFilter" && filter2.First.ToString() == "NoFilter")
column.ItemStyle.CssClass = "";
else
column.ItemStyle.CssClass = "rgFilterClass";
}
This works well if I use the two filter fields of the context menu, but if I only choose elements from the filter checked list of my context menu, it's not working. :(
How can I access the "filter checked list" of my "header context menu" from my code-behind? Or is there another way to know that my columns are filtered with the "filter checked list"?
Thank you for your help,