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

Tab tooltip

2 Answers 55 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Bhavin
Top achievements
Rank 1
Bhavin asked on 22 Oct 2009, 06:50 PM
I am dynamically generating Tab like:
  RadTabItem itemToAdd = new RadTabItem()
                    {
                        Header = pnl,
                       ToolTip="RevKey : " + _revKey,
                        Content = newAudit,
                        Padding = new Thickness(10, 5, 10, 5),
                     };

here newaudit is some usercontrol which have agains tabs inside.
So,problem is that I am assigning tooltip="revKey=......" to Top control(itemToAdd ) tab and it show the tooltip to newAudit control tab's also as well as  for newaudit tab content (textbox,combox).

2 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 23 Oct 2009, 01:57 PM
Hello Bhavin,

Yes, this is kind of unexpected but happens because the ToolTip is set to the TabItem and the content of the TabItem is still part of it.

To get around that, you can set the tooltip to the header of the TabItem. If your header (pnl) is a visual item, you can attach the tooltip directly. Otherwise you may want to assign a HeaderTemplate which will contain the tooltip. In this template you can bind the tooltip to a property in the header object as well.

Does this work in your case?

Greetings,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Bhavin
Top achievements
Rank 1
answered on 23 Oct 2009, 08:46 PM
Thanks a lot.
it worked..i assign tooltip to pnl..instead tabitem
Tags
TabControl
Asked by
Bhavin
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Bhavin
Top achievements
Rank 1
Share this question
or