I have a Kendo Grid where I filter based on an Enum.
Let's say the Enum was:
Kendo Grid:
and
I would like for the Filter to show only Yes or No options. Is there a way to do this?
Let's say the Enum was:
public enum MyEnum
{
[Description("Null")] Null = -1,
[Description("Yes")] Yes = 1,
[Description("No")] No = 0,
}
Kendo Grid:
.Filterable(filter => filter.Enabled(true)
.Operators(o => o.ForEnums(e => e.Clear()
.IsEqualTo("Equals")
.IsNotEqualTo("Not equal to")))
)
and
.Filter(filter => filter.Add(p => p.myColumn).IsEqualTo(MyEnum.Yes))
I would like for the Filter to show only Yes or No options. Is there a way to do this?