Edit model before save is performed

2 posts, 0 answers
  1. Volker
    Volker avatar
    22 posts
    Member since:
    Jul 2013

    Posted 23 Aug 2014 Link to this post


    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,
  2. Rosen
    Rosen avatar
    3247 posts

    Posted 27 Aug 2014 Link to this post

    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.

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top