Change look of disabled item

2 posts, 1 answers
  1. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 31 Mar 2008 Link to this post


    I build a wizard based on TabStrip.
    My Idea - disable all items except the current page (wizzard step).

    Works fine - but I want to give the disabled tabs a special "look".
    I want to display it (for an example) in red, while the active pageheader is green.

    I played around with theme builder and added a state "!Enabled" but it does not work

    Any help would be great

  2. Answer
    Nikolay avatar
    1802 posts

    Posted 03 Apr 2008 Link to this post

    Hi Manfred,

    You are able to achieve disabled controls with a look governed by the theme. You have to set the UseDefaultDisablePaint property of the controls' RootRadElement and of its subelements to false.

    You should use a recursive algorithm to access them and modify the value of this property. I have attached a sample project that demonstrates the use of this algorithm. The BrowseControls() method browses all the controls on the Form and the BrowseElements() method browses the subelements of the RadControls' RootRadElement.

    I hope this helps. If you have additional questions, do not hesitate to contact us.

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
Back to Top