RadGridView GridViewDataColumn DataFilter Number ContainedIn filtering

2 posts, 0 answers
  1. Ravin
    Ravin avatar
    16 posts
    Member since:
    Jun 2012

    Posted 06 Jul 2016 Link to this post

    Good afternoon,


    I am trying to filter a column that is an Int32 type, and I want to supply a list of numbers to filter it similar to:



    Ideally, I would like it being applied to the server side of a Linq query (using the QueryableDataServiceCollectionView<T>) class.


    I see by default, the Is Contained In filter is not enabled or available for non-String types, but is there a way I can override of create a custom behavior to add this IFilterDescriptor (or maybe the IColumnFilterDescriptor contract is what I need to be looking for) to the list that shows up in the CompositeFilterDescriptor to be selected during run time?


    I found the following post on our company blog: http://www.telerik.com/blogs/filtering-collection-properties-with-radgridview-for-silverlight-and-wpf, which illustrates the example of:

    this.players.Where(player => player.FormerClubs.Contains(”Liverpool”));


    What I need is something like:

    (new List<Int32>() { 13, 45, 20 }).Contains(this.tableDto.PrimaryKeyCol);


    In the instance of the value input into the box being "13,45,20".

    Any idea on how I can go about setting this up?



  2. Stefan
    Stefan avatar
    791 posts

    Posted 11 Jul 2016 Link to this post

    Hello Ravin,

    Thanks for the detailed explanation of the requirement.

    We will research the possibility for it to be achieved. Meanwhile, can you please share some details on whether you have tried updating the implementation demonstrated in the blog post, so that it suits such need?

    Best Regards,
    Stefan X1
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top