This is a migrated thread and some comments may be shown as answers.
Edit model before save is performed
1 Answer 8 Views
This is a migrated thread and some comments may be shown as answers.
Volker
Top achievements
Rank 1
Volker asked on 23 Aug 2014, 10:50 PM
Hello,

I have an issue which it seems I am unable to solve:

I have a grid, and implemented an own Save-Button (actually a "save and new" button). In the click-handler, I call grid.saveChanges(). But now, how can I set the model before it is sent to the server? There is one field which I have to replace manually. But I just do not see a possibility to do that. The "save" event of the grid gives me access to the e.model, so if I use the standard-Save, everything works fine. But not with my own button...

How could I achieve this?

Thanks a lot,
Volker

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 27 Aug 2014, 06:38 AM
Hello Volker,

I'm afraid that it is not clear, looking at the provided details, what the implementation of this custom button nor the exact scenario it is used in. Therefore, it will be appreciated if you can provide a bit more details about the implementation used.

Regards,
Rosen
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Volker
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or