Save kendo grid batch edit along with other field

4 posts, 0 answers
  1. John
    John avatar
    2 posts
    Member since:
    Sep 2012

    Posted 03 Jan 2013 Link to this post

    I have a scenario where I want to save kendo grid batch edit and other fields in the form in one submit button press. 

  2. Daniel
    Admin
    Daniel avatar
    1475 posts
    Member since:
    Sep 2012

    Posted 07 Jan 2013 Link to this post

    Hello John,

    We have a code-library which demonstrates how can the Grid values be saved with the other form values. Please check it on this page.

    Regards,
    Daniel
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!

  3. Hatton Point
    Hatton Point avatar
    14 posts
    Member since:
    Dec 2012

    Posted 27 Jan 2013 Link to this post

    Daniel,

    I have the same requirements, but following your example I'm not seeing how to apply to saving changes back to a database. Can you provide a better real world example?

    Here is the process I need...

    1) Edit grid in batch (inline) mode
    2) Submit form.
    3) Controller saves grid data to db (calling data layer) + other data saved (different data layer call).

    Another option, perhaps better, would be to Save the Grid via an API call and then continue on to submit the rest of the form, do other stuff, etc. The DataSource.Update method would be wired up just like normal. The "Save" button in the template somehow makes this call, but I don't know how to wire it up manually. The rest of the form can be processed in normal fashion after the javascript api call is completed.

  4. Daniel
    Admin
    Daniel avatar
    1475 posts
    Member since:
    Sep 2012

    Posted 30 Jan 2013 Link to this post

    Hello,

    I am not sure if I understand the issue with the code-library. The Grid data is send to the server along with the form fields and you can save it in the Save action. Could you clarify a bit?
    The other option that you have described is also possible. You could call the sync method to save the changes from the Grid dataSource and then post the form in the DataSource sync event.

    Regards,
    Daniel
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!

Back to Top