This is a migrated thread and some comments may be shown as answers.

[Solved] Problem re-enabling RadButton within grid

0 Answers 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Boris
Top achievements
Rank 1
Boris asked on 25 Mar 2013, 08:03 PM
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?

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Boris
Top achievements
Rank 1
Share this question
or