Sort Enum on GridViewDataColumn

0 Answers 28 Views
Top achievements
Rank 1
Justin asked on 11 Aug 2022, 02:18 PM


I have an issue concerning GridViewDataColumn. Currently, my data type is Enum. If I sort it in my RadGridView (click on the header of this column) the view is empty after my click, and every data disappear. With other fields it's working fine (string, int, etc..)

Here's how I create my Column:

    Header="Type" UniqueName="MyType"
    DataMemberBinding="{Binding Type}"
    IsSortable="True" IsFilterable="False" IsResizable="True"
    TextAlignment="Left" HeaderTextAlignment="Center" />

It doesn't look possible to sort Enum in this field. Someone has a solution or can help me to make a custom sort for this column?
If you need something more, feel free to ask ;)

Telerik team
commented on 12 Aug 2022, 10:50 AM

I have tested the specified scenario in a sample project, however, I was not able to observe the specified behavior. On my end, the GridViewDataColumn, which is bound to an enum type property is sorted correctly and the values do not disappear. I have attached the sample application, so, could you give it a try and see if I am missing something? 

No answers yet. Maybe you can help?

Asked by
Top achievements
Rank 1
Share this question