I have a Service Contract that can have many pieces of Covered Equipment. I would like to use the grid control to let users add and edit equipment BEFORE the parent object is created (basically storing it all client-side, and then sending it back with the parent info in one form POST).
Is this scenario possible? All of the examples I've found are using AJAX calls on each edit, which I can't do.
6 Answers, 1 is accepted


I'm so close, I have to be missing something.
The SaveChanges event is the one I need to capture, but I can't see a way to grab the set of changes. Can anyone point me in the right direction?
If you need to submit the Grid which edits the child object along with form element containing other input elements that you can check the following demo in our CodeLibrary:
Regards,
Vladimir Iliev
Telerik
See What's Next in App Development. Register for TelerikNEXT.

Thanks Vladimir. That's essentially what I ended up doing, although I added the hidden fields in the onSave event handler and remove them in onDataBinding if the action is "remove".
I was really hoping for some client API where I could just say "getChanges()" and get an array of the added and changed rows. Perhaps in a future version?
Actually using the current grid and it's dataSource API you can implement custom solution which to get all records which are modified on the client side. For example you can iterate over the available records returned by the "data" method and check for their "dirty" flag. Additionally you can distinguish new records from old ones using the model "isNew" method.
Regards,
Vladimir Iliev
Telerik
See What's Next in App Development. Register for TelerikNEXT.
