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

Grid filters not working proper

2 Answers 14 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 31 Jan 2014, 09:13 AM
Hi all,
I have a question about KendoGrid filtering. I have server side filtering enabled. If I use the filter on a column to choose two filters (on the same column) it does not send across the selected operator ("and" or "or"). What it sends to the server is: 

{
   "filters":[
      {
         "field":"username",
         "operator":"contains",
         "value":"bob"
      },
      {
         "field":"username",
         "operator":"contains",
         "value":"john"
      }
   ]
}


Is there a way to get that? It's quite important!


Thanks!

2 Answers, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 04 Feb 2014, 08:54 AM
Hello Markus,

I tried to reproduce the problem locally but to no avail – everything is working as expected on our side. Could you please check this screencast and let me know if I am doing something differently?

Regards,
Alexander Popov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Markus
Top achievements
Rank 1
answered on 04 Feb 2014, 09:58 AM
Hi Alexander,
I had to override the parameterMap in order to send the  request as our server expects it and i thought that as part of the first argument the filter info was under obj.filter.filters but instead the information about the logic was inside obj.filter. I will update my parameterMap function.

Thanks for your help :)
Tags
Grid
Asked by
Markus
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Markus
Top achievements
Rank 1
Share this question
or