RadToolTip Control Now Showing

2 posts, 0 answers
  1. tanzeel
    tanzeel avatar
    1 posts
    Member since:
    Jun 2011

    Posted 07 Jun 2011 Link to this post

    wat i want to is i just want to set radtooltip for my checkboxlist item whose text=Home & Office (free) but its not showing i dont know where i m doing mistake kindly help me out

     foreach (ListItem li in chkPlans.Items)
                    if (li.Text == "Home & Office (free)")
                        RadToolTip rd = new RadToolTip();
                        rd.TargetControlID = "chkPlans_0";
                        rd.IsClientID = true;
                        rd.ShowEvent = ToolTipShowEvent.OnMouseOver;
                        rd.Position = ToolTipPosition.Center;
                        rd.Text = "testing2";
                        //li.Attributes.Add("title", "testing");


                    li.Text = li.Text + " ?";
  2. Marin Bratanov
    Marin Bratanov avatar
    3567 posts

    Posted 08 Jun 2011 Link to this post

    Hello Tanzeel,

    Here are some issues I can notice in your code:

    • you always set the same TargetCotnrolID to every tooltip you create. I suppose that you should pass the ID of the control you wish to target (but that may vary according yo your scenario and needs)
    • if you pass the ID you need to set the tooltip's IsCilentID property to false, as this would be the server ID which is changed by the framework when in a naming container. You could pass the ClientID of the target element and keep the IsClientID to true.
    • you do not give an ID to the ToolTip, you do not set a HideEvent and the RelativeTo property

    Please try setting all the necessary properties and especially the correct TargetControlID you need and see if that helps.

    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. DevCraft R3 2016 release webinar banner
Back to Top