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

Filter Icon on RadDataGridView column Header

3 Answers 143 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
umesh
Top achievements
Rank 1
umesh asked on 25 Jun 2011, 03:17 AM
Hi,

I was trying to apply filter on DataGridView column(IsFilterable =True). But not able to show icon on column header. My column is bounded with ObservalCollection<MyType> and a am showing values in a Listbox.

Is it possible to show filtering on collection type column, also i want to show custom control(FilterControl) when user click on filter icon.
For example suppose my RadGridView bounded to a collection "ClaimList"
Collection ClaimList includes:
- Claim Number(int)
- Vehicle(String)
- Contact(String)
- Inspection date(DateTime)
- Next Actions (ObservalCollection<IClaimActions>)

The problem is with column Next Action which shows a list of possible actions on a particular Claim Number.

Thanks,
Umesh Kumar

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 25 Jun 2011, 08:19 AM
Hi umesh,

You can not filter a column whose type is a Collection of something. What will the filtering control show and how will it work? This is impossible.

Regards,
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
0
umesh
Top achievements
Rank 1
answered on 27 Jun 2011, 04:41 PM
Hi,

We can understand that it would be difficult to handle a collection of something, but there must be some work around to handle it programmatically (ex. FilterControl). 
Could you please provide us some sample to incorporate a custom collection using a filtercontrol.
0
Rossen Hristov
Telerik team
answered on 28 Jun 2011, 08:41 AM
Hello umesh,

We have a feature called custom filtering controls.  You will also have to implement a custom IFilterDescriptor that can filter collection properties. For a sample implementation of an IFilterDescriptor (with another purpose of course) you can check out this blog.

Basically, your custom filtering control will have to create your implementation of an IFilterDescriptor that knows how to filter collection properties and add/remove it to RadGridView.FilterDescriptors.

Unfortunately, we don't have any examples for this specific case, but I am sure that after you read the two blogs you will know what to do.

Kind regards,
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
General Discussions
Asked by
umesh
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
umesh
Top achievements
Rank 1
Share this question
or