This is a migrated thread and some comments may be shown as answers.

Filter on enum property

2 Answers 89 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kristof
Top achievements
Rank 1
Kristof asked on 20 May 2010, 09:50 AM
Hi,

I have databound my grid with an IEnumerable<> of objects. One of the properties of this object is an enum type. This works great, and the enum type is displayed as expected in the grid, however filtering this column always fails. I used a GridBoundColumn to display the enum value in the grid.

When I enter a value in the filter box, I get a Telerik.Web.UI.ParseException with the message "Neither of the types 'String' and 'MyEnumType' converts to the other"...

Am I using the wrong column type to display enum values? Is it possible to show a dropdownlist with all possible enum values for filtering instead of a textbox in which the user can enter anything?

Kind Regards,
Kristof

2 Answers, 1 is accepted

Sort by
0
Kristof
Top achievements
Rank 1
answered on 21 May 2010, 07:57 AM
Anyone? I cannot imagine it is not possible to use the filter when working with enum type properties...
0
Tsvetoslav
Telerik team
answered on 25 May 2010, 03:55 PM
Hi Kristof,

Still this is not a supported scenario.

Regards,
Tsvetoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Kristof
Top achievements
Rank 1
Answers by
Kristof
Top achievements
Rank 1
Tsvetoslav
Telerik team
Share this question
or