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

Filter on nullable property

2 Answers 397 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Justin Lee
Top achievements
Rank 1
Justin Lee asked on 25 Jul 2011, 05:44 PM
Hello.
I have a table in a report that is bound to a list of objects.  I would like to add a filter to only display rows where a certain property is not null.  The property is a nullable decimal (C#: Decimal?)

How would I set this filter up?  (is it possible?)

I tried:
    Expression:    =Fields.Property
    Operator:        <>
    Value:            =Null
And
    Expression:    =CStr(=Fields.Property)
    Operator:        <>
    Value:            <left the value blank>

but neither worked.

Thanks,
Justin

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 26 Jul 2011, 12:26 PM
Hello Justin Lee,

In order to filter table rows when certain value is null our suggestion is to use the following Table.Filter:

 Expression  Operator  Value
 = IIF(Fields.Property is null, false, true) =true 

All the best,
Peter
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
Justin Lee
Top achievements
Rank 1
answered on 26 Jul 2011, 03:28 PM
Perfect. Works great. Thanks.
Tags
General Discussions
Asked by
Justin Lee
Top achievements
Rank 1
Answers by
Peter
Telerik team
Justin Lee
Top achievements
Rank 1
Share this question
or