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:
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:
- Filter Product Name equals Chai
- Filter Units in Stock > 18
- 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).
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).