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 optionSecond 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 optionI 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
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)
I would like to run some test but I do not know how to remove those evenhandler, I know how to create them programmatically though.Could you show me how to remove those eventhandler?Thanks