Hi,
I'm using a RadGridView which has many columns of type GridViewComboBoxColumn. "IsFilteringAllowed" is set to true. I've some columns which is binded to enums. Hence, when the grid in rendered, its picking the filter options from the enum. Since its nullable enum, the filter option contains "null" and blank entry. I'm trying to remove them. I'd searched and explored a lot in internet including Telerik forums, but didn't find the right way yet.
Could someone throw some light in the right direction to solve this?
public enum TestEnum
{
One = 0,
Two,
Three,
}
....
....
private TestEnum? _objTest;
public TestEnum? sampleTest
{
get
{
return _objTest;
}
}
...
...
<
telerik:GridViewComboBoxColumn
x:Name
=
"TESTING"
DataMemberBinding
=
"{Binding sampleTest}"
Header
=
"{Binding Path=Sequence, Source={StaticResource DCTResources}}"
TextAlignment
=
"Center"
Width
=
"28"
IsReadOnly
=
"True"
IsVisible
=
"{Binding IsVisible}"
ShowDistinctFilters
=
"True"
/>
...
...
Resulting filter contains values: (blank), null, One, Two, Three
Regards,
Praveen.