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

button Enable desable

3 Answers 86 Views
Button
This is a migrated thread and some comments may be shown as answers.
NA
Top achievements
Rank 1
NA asked on 12 Feb 2015, 05:26 AM
Radbutton using javascript and that 

 if (|| args.get_eventTarget().indexOf("RadButton") >= 0)
                    args.set_enableAjax(false);



protected void RadButton_Click(object sender, EventArgs e)
    {
       
            RadButton.Enabled = false;         // this is not working
    }
when ever click the button that button is disable pleas help me

3 Answers, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 12 Feb 2015, 01:49 PM
Hi,

Could you please try to reproduce the issue with the example below and then tell us what changes you have made, so that I can proceed further with the investigation:
ASPX:
<telerik:RadButton ID="RadButton1" runat="server" Text="Disabel 2nd Button" OnClick="RadButton1_Click" />
<telerik:RadButton ID="RadButton2" runat="server" Text="Button 2" />
C#:
protected void RadButton1_Click(object sender, EventArgs e)
{
    RadButton2.Enabled = false;
}


Regards,
Danail Vasilev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
NA
Top achievements
Rank 1
answered on 13 Feb 2015, 06:26 AM
Hi Danail Vasilev...

Thank you for replay 
     But this is not my requirement .
I am using only one Radbutton .That button only click event disable the RadButton1 and this button using javascript 

Radbutton using javascript and that 

 if (|| args.get_eventTarget().indexOf("RadButton1") >= 0)    // I want  this java script,  when removing this java script working 
                    args.set_enableAjax(false);                                   perfectly ,but i want this java script and enable/Disable functionality



protected void RadButton1_Click(object sender, EventArgs e)
    {
       
            RadButton1.Enabled = false;         // this is not working
    }
when ever click the button that button is disable pleas help me
0
Danail Vasilev
Telerik team
answered on 13 Feb 2015, 11:42 AM
Hi,

I am afraid I don't fully understand your requirement. What I can suggest, however, is that you examine the following resources that may be helpful:
   - Button - Single Click Button
   - Executing JavaScript function from server-side code
If the above information is not helpful please provide details on the actual and the expected behavior of the button as well as a runnable sample.

Regards,
Danail Vasilev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Button
Asked by
NA
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
NA
Top achievements
Rank 1
Share this question
or