Following this example: https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/how-to/Filtering/custom-filter-options-with-handling
Everything works in this example, except when the Menu Item is clicked and FilterCommandEvent is fired, there is no unique column name in the RadGrids Item Command.
e.Item.Attributes["columnUniqueName"] does not have unique name of column.
protected
void
filterMenu_ItemClick(
object
sender, RadMenuEventArgs e)
{
GridFilteringItem filterItem = RadGrid1.MasterTableView.GetItems(GridItemType.FilteringItem)[0]
as
GridFilteringItem;
filterItem.FireCommandEvent(
"Filter"
,
new
Pair(e.Item.Value, e.Item.Attributes[
"columnUniqueName"
]));
}
Looking through the RadMenuItem object and GridFilteringItem object, I do not see any reference to the column that is trying to be filtered.
Is there a way to know the column that the filter option being selected is from? There would have to be, otherwise there would be no reason to allow customer filter Options if you never knew the column to filter on.
I am using 2021 Q1 Telerik.Web.UI