This is a migrated thread and some comments may be shown as answers.

Using a grid as one piece of information in a form for a transactional save

1 Answer 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ftytyjghbhcgdfgscf
Top achievements
Rank 1
ftytyjghbhcgdfgscf asked on 08 Mar 2013, 05:55 AM
I have an mvc form with some form fields and a kendo grid. I make some changes in the form fields and a few row changes in the grid, then I have a single save button at the bottom of the page to save this all.

The save needs to all happen in a single transaction so I can't just call the grid to save, I need to handle the data.

Is there any way other than keeping track of changed rows through the change event?

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 11 Mar 2013, 05:28 PM
Hello Kay,

You can use the Model dirty field to check if a record was modified and include it in the changed data. If you are adding new items, you could use the isNew method to determine if the item is new.

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!
Tags
Grid
Asked by
ftytyjghbhcgdfgscf
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or