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

filtering in grid

1 Answer 54 Views
GridView
This is a migrated thread and some comments may be shown as answers.
pastibox
Top achievements
Rank 1
pastibox asked on 10 May 2012, 12:25 PM
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?


1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 15 May 2012, 09:12 AM
Hello,

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,
Stefan
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
GridView
Asked by
pastibox
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or