Disable Button On Submit in User Control

5 posts, 1 answers
  1. Felipe Saldana
    Felipe Saldana avatar
    62 posts
    Member since:
    Jan 2009

    Posted 26 Mar 2009 Link to this post

    I am having trouble disabling (visibility = hidden or display = none or disabled = true) an asp:Button that is contained in a user control when it is clicked.


    My user control is in an asp:panel that is ajaxified by a RadAjaxManager.

    I have added javascript to the onClick attribute (for the actual button in the user control) that performs this.style.display =none

    I have also added a javascript method in the page that contains the RadAjaxManager and its does not work either.

    Nothing I try seems to disable the button when I click.


    Any ideas?

  2. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 31 Mar 2009 Link to this post

    Hello Felipe Saldana,

    Try returning false from the client function that disables the buttons. This will prevent it from making a postback. If you need the postback, you can disable the button on the server or attach a start up script to the page that should hide the button.

    If the problem persists, could you post your aspx, ascx and code behind.

    Thank you.

    Best Regards,
    Tsvetoslav
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. Felipe Saldana
    Felipe Saldana avatar
    62 posts
    Member since:
    Jan 2009

    Posted 31 Mar 2009 Link to this post

    This button triggers a long running process ....I want to disable the button to prevent duplicate postbacks.  So I dont want to do it on the server side.

    I didnt end up getting the button disabled but attacked the problem from a different path.

    I display a modal tooltip and thus the user does not have access to the button.


  4. Answer
    Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 03 Apr 2009 Link to this post

    Hello Felipe Saldana,

    I am glad that the issue you were facing has been resolved.

    Feel free to contact us if you have any additional questions.

    Best wishes,
    Tsvetoslav
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  5. varun
    varun avatar
    1 posts
    Member since:
    Jul 2019

    Posted 13 Jul Link to this post

    That's really cognitive information to know about such a indomitable and concrete stuffs. I stolidly respect that effort and hope to keep the good work as same as always. Thank you for being so workaholic, it has server us the way we want. Indeed , grateful  to you.
Back to Top