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

    Hi

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

    Cheers,
    Jani
  2. Slav
    Admin
    Slav avatar
    1355 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:
    .CustomDisabledButton
    {
        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,
    Slav
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top