Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
995
Switch Saving mode between updating after a row is modified or by clicking on "Save" Button
posted

Hello ,

I would like to give my user the capabilty to decide how they want to save their data.

First option: When they modify a row and swith to another row, then a postback is done which saved the modified row. I use updateCellBatch for this option
Second Option: The user modify the entire grid and then click a Save button to save all of its changes. I use  UW_UpdateRow and UW_UpdateGrid for this option
I have been succesfull at developing both option in 2 different page, so now I would like to have only one page where I give the user the option.
What are the changes that I have to put into my code to switch between option 1 and option 2?

Thanks

Parents
  • 28464
    posted

    Hello,

    It might be a bit tough to do so, since the grid action is determined by the events that are wired to it. You will probably need to wire the events programmatically instead of declaratively, using the += syntax (if you are using C#). Please, take into account that events should be wired in the OnInit event of the page in order to work properly, so you need to take into account the lifecycle of the page in ASP.NET when adding/removing them (since postback event handlers fire after OnInit, and in fact, after Page_Load as well)

Reply Children
No Data