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

Problem with FilterDescriptor in Q1 2013

2 Answers 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Renate
Top achievements
Rank 1
Renate asked on 13 Mar 2013, 08:49 AM
Hi,

I have a problem with different behavior of FilterDescriptor in Q1 2013 (upgraded from Q1 2012).
I want to filter out all rows where 2 columns have a value of string.Empty and set the filter like this:

CompositeFilterDescriptor cfd = new CompositeFilterDescriptor();

FilterDescriptor fd1 = new FilterDescriptor("Anlage", FilterOperator.IsNotEqualTo, "");
cfd.FilterDescriptors.Add(fd1);

FilterDescriptor fd2 = new FilterDescriptor("Bestellung", FilterOperator.IsNotEqualTo, "");
cfd.FilterDescriptors.Add(fd2);

cfd.LogicalOperator = FilterLogicalOperator.Or;
grid.FilterDescriptors.Add(cfd);



In Q1 2012 this resulted in:
CompositeGridFilter, Expression: (Anlage <> '' OR Bestellung <> '')    

In Q1 2013 the expression now is:
(NOT (Anlage IS NULL) OR NOT (Bestellung IS NULL))

which is not what I want!

Is there any way around this?

Thanks a lot in advance

Renate




2 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 15 Mar 2013, 02:56 PM
Hi Renate,

Thank you for writing.

In the last release we introduced fixes and improvements to the 
Null value support in filtering operation. I have tested your filtering scenario and I found that the introduced changes caused a regression on the filtering operation when empty string value is used. The issue is already resolved and fix will be included in the Q1 2013 SP1 release, planed to be available for download by the end of the month.

Thank you for the report. Your Telerik points have been updated.

All the best,
Julian Benkov
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
0
Renate
Top achievements
Rank 1
answered on 15 Mar 2013, 03:42 PM
Hi Julian,

thank you for the reply!
Tags
GridView
Asked by
Renate
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Renate
Top achievements
Rank 1
Share this question
or