I am brand new to the world of coding web pages and have a question.
I have a table on a RadAjaxPanel. The first column is description labels and a couple of the labels have a button to pop detail. The remaining columns are actually the data we are editing and are a RadListView. When the user clicks on a detail button, we pop a modal window, do some data entry, recalculate and then update and save the information that is being displayed/edited in the RadListView. This all works great unless the user has edited data in the RadListView and then pops the detail before saving the data. If that happens, the detail gets saved, the data being displayed in the RadListView gets reloaded, tweaked and saved basically throwing away any changes the user made and did not save.
To try and get around this, I added an OnClientClick call to a javascript function that would fire the onclick of the forms "save" button and return true so that the detail modal form would fire up based on the onclick event. Well, the onclientclick fires, but then the onclick never does. If it matters, I set the onclientclick event statically and set the onclick dynamically during the page load so I can pass the correct guid as a parameter to the detail modal form. I did this based on info I found that said OnClientClick fires before the OnClick event and the OnClick event fires or not based on the return value of the OnClientClick event.
Any thoughts/comments?
I have a table on a RadAjaxPanel. The first column is description labels and a couple of the labels have a button to pop detail. The remaining columns are actually the data we are editing and are a RadListView. When the user clicks on a detail button, we pop a modal window, do some data entry, recalculate and then update and save the information that is being displayed/edited in the RadListView. This all works great unless the user has edited data in the RadListView and then pops the detail before saving the data. If that happens, the detail gets saved, the data being displayed in the RadListView gets reloaded, tweaked and saved basically throwing away any changes the user made and did not save.
To try and get around this, I added an OnClientClick call to a javascript function that would fire the onclick of the forms "save" button and return true so that the detail modal form would fire up based on the onclick event. Well, the onclientclick fires, but then the onclick never does. If it matters, I set the onclientclick event statically and set the onclick dynamically during the page load so I can pass the correct guid as a parameter to the detail modal form. I did this based on info I found that said OnClientClick fires before the OnClick event and the OnClick event fires or not based on the return value of the OnClientClick event.
Any thoughts/comments?