Jan 22, 2009, 3:20 PM
Updating multiple grids on save - need design pattern
*Hi Geoff/Vladimir
I'm having an issue understanding the process (pattern) of how to update multiple grids on a form save.
On the client side, I'm displaying a form. This contains :
* Bunch of text fields
* Bunch of drop down fields
* Two Grids (at the moment) Phone Numbers & Email Addresses
I have a toolbar at the top with a Save button, which submits back to the code behind function (C#).
When I edit the grids on the front end, I don't want the changes automatically sent back to the server. The system could have a high number of concurrent users, so its best to handle the changed data only when they hit Save.
At the moment, I can access the Text and Drop Down boxes in the standard way (.Text, .SelectedValue etc). I can't access the updated grid data, either in the Store or Data Object. I saw a similar thread to this before, where you implemented a specific GridView save function. However, I don't understand the design pattern on either the client or server side to get the new data. Ideally I'd like an updated Data Object, but I realise that may be asking a bit much :). Access to the altered Store would probably suffice.
Could you help explain it a bit further?
Best regards
Steve
I'm having an issue understanding the process (pattern) of how to update multiple grids on a form save.
On the client side, I'm displaying a form. This contains :
* Bunch of text fields
* Bunch of drop down fields
* Two Grids (at the moment) Phone Numbers & Email Addresses
I have a toolbar at the top with a Save button, which submits back to the code behind function (C#).
When I edit the grids on the front end, I don't want the changes automatically sent back to the server. The system could have a high number of concurrent users, so its best to handle the changed data only when they hit Save.
At the moment, I can access the Text and Drop Down boxes in the standard way (.Text, .SelectedValue etc). I can't access the updated grid data, either in the Store or Data Object. I saw a similar thread to this before, where you implemented a specific GridView save function. However, I don't understand the design pattern on either the client or server side to get the new data. Ideally I'd like an updated Data Object, but I realise that may be asking a bit much :). Access to the altered Store would probably suffice.
Could you help explain it a bit further?
Best regards
Steve