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

Extending functionality of RadGridView's native filter

1 Answer 61 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Andrey
Top achievements
Rank 1
Andrey asked on 03 Jun 2011, 02:38 PM
My task is not to implement new control, like it is done with IFilteringControl interface, but extend functionality of existing FilteringControl.
As far as I understand it can be done through Behavior class - link below.
http://blogs.telerik.com/blogs/posts/10-01-22/how_to_customize_radgridview_s_default_filtering_control_with_attached_behaviors_silverlight_amp_wpf.aspx
By extending I mean that some additional items must be added to "PART_DistinctValuesList" ListBox, and the logic of comparison must be changed from Equal to StartsWith.
While extending functionality like it was done in article I thought that it might be possible just to construct DistinctValueViewModel List of objects and add this to existing list in DataContext.DistinctValues in other words to FilteringViewModel.
The problem is that ConvertedValue can not be set in DistinctValueViewModel, so list can not be constructed and added to existing one.
Is there any way to solve my problem using this solution without implementing new filter control. Or may be another solution also exists.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 03 Jun 2011, 03:42 PM
Hello Andrey,

The easiest way for you would be to implement your own custom filtering control from scratch. The stock one was never designed in order to be widely extensible in any possible way, so it serves its particular job. You can of course study its source code in order to understand what it does. After that it would be easier for you to create your very own custom filtering control. 

I hope this helps.

Greetings,

Ross
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
GridView
Asked by
Andrey
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or