We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

filter bar cell binding enum type

I have a filterbarcell and it is bound to a Enum type. However, when I change the filter cell value, it displays the enum integer instead of enum value. i.e. it displays 1 instead of ONE.
Enum type: ONE=1.
Is it possible to have filterbarcell bound to a enum type and displays value instead of integer always?

Thanks

1 Reply

NR Nirmal Raja Syncfusion Team August 10, 2010 12:45 PM UTC

Hi,

Thank you for your interest in Syncfusion products.

By default the enum column type will have the index in the filter bar as it is represented as a value. In order to have the display text in the filter drop down you need to work around with the following events such as QueryFilterBarChoices, QueryRecordMeetsFilterCriteria and TableControlCurrentCellCloseDropDown.

Please refer the sample attached in the below location:
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=GGCEnum2013429504.zip

Let me know if you have any queries.

Regards,
Nirmal

Loader.
Live Chat Icon For mobile
Up arrow icon