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

[Solved] EnumDataSource example question

1 Answer 182 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tomas
Top achievements
Rank 1
Tomas asked on 13 Jan 2011, 11:46 AM

Hi,

I've got a question regarding the EnumDataSource example in the demos (http://demos.telerik.com/silverlight/#GridView/EnumDataSource)
The enums are displayed nicely using the DescriptionAttribute in the grid itself but if you try to filter then the actual enum values
are displayed. Is it possible to show the "friendly names" in the filter as well?
I've attached a screenshot just to clarify.

Tomas

1 Answer, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 14 Jan 2011, 12:49 PM
Hello Tomas,

Currently, the only way to achieve this would be to develop a custom filtering control like in this blog post.

In the custom filtering control, you can use the enum data source to find out what the friendly name of each enum value is.

For a general tutorial on custom filtering, please take a look at my blog post.

I hope this helps.

Kind regards,
Ross
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Tomas
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or