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

Filter NULL Values

2 Answers 134 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Fanis
Top achievements
Rank 1
Fanis asked on 08 Jul 2011, 01:24 PM
Hello,

Is it possible to filter only the null values of a specific Column in GridView?

Thanks

2 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 11 Jul 2011, 01:02 PM
Hi Fanis,

 It depends on how you would like to filter on the null values. How do you imagine the user to tell the Filtering control to filter/show the null values in the respective column?

The best way to do this would be to apply a converter on the column. If you have a null value then use an appropriate string: "null", "undefined" or String.Empty (for example for int? "String.Empty" will be shown by default instead of the null values) . That way in the filtering control you will have an check box with this specific "null" string. After you check it, all the rows containing null values in that column will be shown.

Is this what do you mean, or have I misunderstood your question?

Best wishes,
Didie
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Fanis
Top achievements
Rank 1
answered on 09 Jan 2012, 01:26 PM
Hello again,

I come up again with same problem, but the thing now is that I am using data virtualization and I need to filter the null values as they come from the db.

Any suggestions?
Tags
GridView
Asked by
Fanis
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Fanis
Top achievements
Rank 1
Share this question
or