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

Color of selected tab

3 Answers 203 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Soren Michelsen
Top achievements
Rank 1
Soren Michelsen asked on 19 Jan 2011, 09:27 PM
Yes, simple question :-)

How do I define the color of the currently selected tab, so as to make it blend seamlessly with the associated radPageView?

Thanks,
J. Jespersen
Denmark

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 Jan 2011, 05:47 AM
Hello Jeppe,

RadTab objects have a number of properties whose value is the name of a CSS class. These properties let you alter the appearance of individual tabs in the tab strip without using a custom skin.

In your case, you can set the "SelectedCssClass" property to your custom CssClass.
Setting the CSS Class of Tabs


-Shinu.
0
Soren Michelsen
Top achievements
Rank 1
answered on 20 Jan 2011, 12:31 PM
Hi there,

I really don't mean to be rude, but your answer gets me no-where. (sorry, that did sound rude, didn't it). Sorry! :-)

Maybe I'm missing something, but it must be very simple to just set the color of the tab itself (it's white now, I want it green).

Do you have a specific sample that applies to this problem?

-Jeppe
0
Shinu
Top achievements
Rank 2
answered on 20 Jan 2011, 02:17 PM
Hello Jeppe,

Since RadStrip uses images, we cannot apply the color directly. One suggestion is to create custum images and try overriding the default CSS. Here is the sample CSS.

CSS:
.rtsSelected, .rtsSelected span
        {
           background:url(../Images/btnUpdate.jpg) no-repeat 0 100%  !important;
           background-color: red !important;
           text-align: center;
        }

Thanks,
Shinu.
Tags
TabStrip
Asked by
Soren Michelsen
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Soren Michelsen
Top achievements
Rank 1
Share this question
or