Adding Tooltip to RadTab

2 posts, 0 answers
  1. Richard Maxwell
    Richard Maxwell avatar
    4 posts
    Member since:
    Mar 2009

    Posted 18 Nov 2009 Link to this post

    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);  
            } 

     

     

  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 20 Nov 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top