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

RadToolTip Control Now Showing

1 Answer 46 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
tanzeel
Top achievements
Rank 1
tanzeel asked on 07 Jun 2011, 11:56 AM
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";
                    this.Form.Controls.Add(rd);
                    //li.Attributes.Add("title", "testing");


                }




                li.Text = li.Text + " ?";
            }

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 08 Jun 2011, 02:25 PM

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.



Regards,
Marin
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.

Tags
ToolTip
Asked by
tanzeel
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or