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.
0
Daniel
Telerik team
answered on 30 Jan 2013, 07:52 AM
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!