Filter Icon on RadDataGridView column Header

4 posts, 0 answers
  1. umesh
    umesh avatar
    2 posts
    Member since:
    Jan 2011

    Posted 24 Jun 2011 Link to this post

    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
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2477 posts

    Posted 25 Jun 2011 Link to this post

    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
  3. umesh
    umesh avatar
    2 posts
    Member since:
    Jan 2011

    Posted 27 Jun 2011 Link to this post

    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.
  4. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2477 posts

    Posted 28 Jun 2011 Link to this post

    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
Back to Top