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

TabControl Dropdownlist mouseover effect

2 Answers 60 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
GOPI S
Top achievements
Rank 1
GOPI S asked on 11 May 2012, 10:26 AM
Hi,

I am in process of creating customized theme for Tabcontrol. I am facing two issues right now .

1)I want to change the mouse-over effect(maybe color) of dropdown list item which will be displayed when we set DropDownDisplayMode="WhenNeeded", right now telrik default effect was displayed

2)If the tab header name is lengthy the header need to be wrapped to next line but if there is enough space it should not be wrapped
  wrapping should not be done at character level it should be at word level

ex MouseOver Effect is the tabheader then on maximum resolution it should be displayed on singe line but on resizing the window if there is no enough room to display the content the tab header should be wrapped such that it should look like


  "MouseOver"
     "Effect"


2 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 16 May 2012, 02:16 PM
Hello Gopi,

You can easily implement your first requirement by applying a custom style for the DropDownMenuItems. I attached a sample project demonstrating how to change the mouse over color settings to green.

Unfortunately, the second requirement you have can't be implemented in the RadTabControl. At the moment the control supports wrapping of the tabs, but not wrapping of the content of the tabs.This functionality is implemented when the horizontal ScrollViewer of the control is disabled and you can control the way the rows of items are ordered using the ReorderTabRows property.

Greetings,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
GOPI S
Top achievements
Rank 1
answered on 23 May 2012, 05:10 AM
Thanks Tina ,

I have already applied style by looking at some of the existing forum in same website and for wrapping i have handled by placing two textblock inside RadTabItem template and will checking wrapping condition via code
Tags
TabControl
Asked by
GOPI S
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
GOPI S
Top achievements
Rank 1
Share this question
or