I'm looking at using the RadGrid to edit an "Invoice" object which contains a List of "InvoiceItem" objects. I want to be able to add, edit and delete these InvoiceItem objects through the RadGrid, but I also don't want the changes to be applied until the user hits "OK".
What is the best way construct a set of objects like this with the RadGrid but defer updating the database until the end of the editing process? Should I create a shadow DataTable or other Serializable collection and store it in the view state so I can synchronize my objects at the end of the process? Or is there a better way of doing it?
I was initially thinking I would populate the RadGrid on PageLoad, then let the user the edits he needed, then query the RadGrid's status when the user clicks "OK" to see what all the rows contain, then apply those edits. But because the NeedDataSource repopulates the grid with each edit, I wasn't sure what the best practice is for this situation.
Thanks!
-Mike
What is the best way construct a set of objects like this with the RadGrid but defer updating the database until the end of the editing process? Should I create a shadow DataTable or other Serializable collection and store it in the view state so I can synchronize my objects at the end of the process? Or is there a better way of doing it?
I was initially thinking I would populate the RadGrid on PageLoad, then let the user the edits he needed, then query the RadGrid's status when the user clicks "OK" to see what all the rows contain, then apply those edits. But because the NeedDataSource repopulates the grid with each edit, I wasn't sure what the best practice is for this situation.
Thanks!
-Mike