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

Adding Tooltip to RadTab

1 Answer 90 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Richard Maxwell
Top achievements
Rank 1
Richard Maxwell asked on 18 Nov 2009, 04:56 PM
Why wont this work?

 

 

 

 

        protected override void CreateChildControls()  
        {  
            base.CreateChildControls();  
 
            var rttMyAlerts = new RadToolTip  
                                  {  
                                      ID = "rttMyAlerts",  
                                      TargetControlID = rtsHeader.Tabs[0].ClientID,  
                                      IsClientID = true,  
                                      Title = "Tool Tip Test",  
                                      Text = "Hi !",  
                                      ShowDelay = 0,  
                                  };  
 
            Controls.Add(rttMyAlerts);  
        } 

 

 

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 20 Nov 2009, 10:20 AM
Hi Richard ,

The RadTabs do not have a client ID and that is why your approach does not work. In such case, you can either add an attribute on the server or create the tooltips on the client. Both the approaches are demonstrated in the demos below:

http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltiptreeview/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltipcalendar/defaultcs.aspx

For your convenience I prepared a sample demo of the first approach and attached it to the thread. Let me know how it goes.


Best wishes,
Svetlina
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.
Tags
ToolTip
Asked by
Richard Maxwell
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or