This is a migrated thread and some comments may be shown as answers.

Change look of disabled item

1 Answer 30 Views
Tabstrip (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ManniAT
Top achievements
Rank 2
ManniAT asked on 31 Mar 2008, 10:17 AM
Hi,

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

Manfred

1 Answer, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 03 Apr 2008, 06:33 AM
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.

Greetings,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Tabstrip (obsolete as of Q2 2010)
Asked by
ManniAT
Top achievements
Rank 2
Answers by
Nikolay
Telerik team
Share this question
or