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

Server Side Filtering

1 Answer 179 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jesse
Top achievements
Rank 1
Jesse asked on 05 Mar 2013, 06:06 PM
Currently the filtering keys look like this:
[4]:  "filter[filters][0][field]"
[5]:  "filter[filters][0][operator]"
[6]:  "filter[filters][0][value]"
[7]:  "filter[filters][1][logic]"
[8]:  "filter[filters][1][filters][0][field]"
[9]:  "filter[filters][1][filters][0][operator]"
[10]: "filter[filters][1][filters][0][value]"
[11]: "filter[filters][1][filters][1][field]"
[12]: "filter[filters][1][filters][1][operator]"
[13]: "filter[filters][1][filters][1][value]"
[14]: "filter[logic]"
This creates all kinds of headaches trying to normalize this.

I notice you do not add the [filters][0] if there is only one filter for the column. It would be really nice if you always used the same syntax like:
[4]:  "filter[filters][0][filters][0][field]"
[5]:  "filter[filters][0][filters][0][operator]"
[6]:  "filter[filters][0][filters][0][value]"
[7]:  "filter[filters][1][logic]"
[8]:  "filter[filters][1][filters][0][field]"
[9]:  "filter[filters][1][filters][0][operator]"
[10]: "filter[filters][1][filters][0][value]"
[11]: "filter[filters][1][filters][1][field]"
[12]: "filter[filters][1][filters][1][operator]"
[13]: "filter[filters][1][filters][1][value]"
[14]: "filter[logic]"
This would make it much easier to parse.

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 07 Mar 2013, 02:49 PM
Hello Jesse,

If you want to change the format in which these parameters are send (serialized) you can use the parameterMap function.

Also if you really think this should be changed I can suggest you to share your idea on our feedback page. If the community vote for the idea we will consider changing it. Keep in mind we cannot change this currently because this will be a breaking change for the other users using the framework.

Thank you for the understanding.

http://feedback.kendoui.com/forums/127393-kendo-ui-feedback

Kind Regards,
Petur Subev
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
Jesse
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or