button Enable desable

4 posts, 0 answers
  1. NA
    NA avatar
    39 posts
    Member since:
    Aug 2013

    Posted 11 Feb 2015 Link to this post

    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
  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 12 Feb 2015 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. NA
    NA avatar
    39 posts
    Member since:
    Aug 2013

    Posted 13 Feb 2015 in reply to Danail Vasilev Link to this post

    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
  5. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 13 Feb 2015 Link to this post

    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.

     
Back to Top