DisbaledImageUrl on client side disabling

2 posts, 0 answers
  1. Jani
    Jani avatar
    61 posts
    Member since:
    Jan 2008

    Posted 07 Dec 2011 Link to this post


    How can the I activate the disabled image while disabling the button on the client side using button.set_enabled(false)?

  2. Slav
    Slav avatar
    1359 posts

    Posted 09 Dec 2011 Link to this post

    Hello Jani,

    Please note that from the Q3 2011 release of the RadControls for ASP.NET AJAX, the RadButton has a property DisabledImageUrl. Via this property you can set a image of your choosing for the disabled state of the button control. In addition to this you can remove the transparency effect so that the RadButton image appears active when it is disabled, as you requested. This can be achieved by specifying the CssClass property of the RadButton with a CSS class that has the following structure:
        opacity:1 !important;

    For your convenience I have attached a sample page, implementing the suggested solution. Please use it as a reference for your further development.

    All the best,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top