filtering in grid

2 posts, 0 answers
  1. pastibox
    pastibox avatar
    3 posts
    Member since:
    Jun 2009

    Posted 10 May 2012 Link to this post

    I would like to filter rows by one column by operator FilterOperator.IsNotNull or FilterOperator.IsNull but in this column I have set string.Empty as Value.

    When I use FilterOperator.IsNotNull I have all rows, but I want to have only rows which have set in Value any signs.
    When I use FilterOperator.IsNull I haven't any rows, but I want to have only rows which have string.Empty as Value.

    How Can I do it?

  2. Stefan
    Stefan avatar
    2908 posts

    Posted 15 May 2012 Link to this post


    Thank you for writing.

    One way to achieve the desired behavior is to replace the default menu items with your own items and perform the desired filtering when they are clicked. Attached you can find a sample project demonstrating this approach. 

    More information regarding context menus and filtering, can be found here and here.

    I hope this helps.
    All the best,
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top