Let's just cancel this one for now. The situation has changed. Thanks.
What's wrong with this scenario?
I have a RadButton within a popup formtemplate within a RadGrid.
In order to prevent multiple inserts the RadButton does a onClientClicked call to this JavaScript function:
function disableSave(button, args) {
if (Page_IsValid) {
button.set_enabled(false);
}
}
This has been working fine so far.
However now I need to do some server side validating as well (This is a work-around since I can't get the validators in an ascx on that same FormTemplate to fire. I've addressed that matter in a separate post.) In the InsertCommand I do some checks and if they fail, I get a handle to the button and set Enabled=True.
Unfortunately this does not work. The button remains disabled.
Suggestions?
What's wrong with this scenario?
I have a RadButton within a popup formtemplate within a RadGrid.
In order to prevent multiple inserts the RadButton does a onClientClicked call to this JavaScript function:
function disableSave(button, args) {
if (Page_IsValid) {
button.set_enabled(false);
}
}
This has been working fine so far.
However now I need to do some server side validating as well (This is a work-around since I can't get the validators in an ascx on that same FormTemplate to fire. I've addressed that matter in a separate post.) In the InsertCommand I do some checks and if they fail, I get a handle to the button and set Enabled=True.
Unfortunately this does not work. The button remains disabled.
Suggestions?