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

Complex filters don't work properly

1 Answer 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 04 Jul 2012, 08:21 AM
I've been trying to set a slightly complex filter for a grid using the Kendo Beta for ASP.net MVC. I've roughly followed steps from here: http://www.kendoui.com/forums/framework/data-source/can-or-be-used-to-filter-a-datasource.aspx#2058189

the results are not as expected. It is also possible to reproduce the problem in the samples (but only in the ASP.net mvc samples). 
If you go to this sample:
http://localhost:xxxxxx/razor/web/grid/ajaxbinding 

Then do the following:
  1. Filter Product Name equals Chai
  2. Filter Units in Stock > 18
  3. Change Product filter to be Chai or Chang
This should logically be (Chai or Chang) && (>18) but is returning the Chang product with a units in stock of 17. The order you apply the filters is important (e.g. if you now set the units in stock filter again you'll get the expected result).

Looking into it it seems that passing the filters from the client side to the server side is losing the nesting of filters, you can even see this in the server binding example where the url contains the filter but there are no parenthesis (or similar).

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 04 Jul 2012, 12:59 PM
Hi Alex,

Indeed, you are correct I observed the described behavior. However, we addressed it and the fix will be available with the official Q2 2012 release of KendoUI. I have also updated your telerik point as token of gratitude for bringing this to our attention.

Greetings,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Alex
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or