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

Remove fields for update

1 Answer 25 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 20 Jun 2014, 12:34 PM
I've got a situation in which I'd like to read from one service and update to a different one, and they have slightly different models.  The read data includes some joins that facilitate showing it in a grid, but those joined fields can't be part of the update.  I see with transport.update.data, I can send additional parameters, but can I remove parameters from the model as well?

1 Answer, 1 is accepted

Sort by
0
Accepted
Kiril Nikolov
Telerik team
answered on 24 Jun 2014, 09:06 AM
Hello Kevin,

In the transport.update.data is used to send additional parameters, but cannot be used to remove parameters from the model. If you want to modify the data that is being sent on update you can use the parameterMap function, where you can check if you are making an update function and modify the model that is being sent. A similar problem is discussed here:

http://stackoverflow.com/questions/18958786/kendo-ui-grid-modufy-data-before-send

If you have any further questions, please do not hesitate to contact us.

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
Kevin
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or