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

Datasource sending parameters

1 Answer 137 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Comrax LTD
Top achievements
Rank 1
Comrax LTD asked on 27 Jun 2013, 03:29 PM
My model has fields: [name, info].
When I'm sending XHR to the server, I see in chrome network tab that it sent the fields but also it has added fields [id, guid].
Why does KendoUI do it and how do I disable sending those fields?

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 28 Jun 2013, 11:56 AM
Hi,

If you want to modify the parameters sent to the server please use the parameterMap method of the DataSource transport. More information about it can be found in the corresponding documentation:

http://docs.kendoui.com/api/framework/datasource#configuration-transport.parameterMap

On a side note, I have tested this on one of the Kendo UI Grid Demos on our website and was not able to see the id and guid being sent to the server.

Regards,

Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Data Source
Asked by
Comrax LTD
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or