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

Adding tooltip to checkboxlist

2 Answers 155 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Axe
Top achievements
Rank 1
Axe asked on 07 Jun 2007, 12:13 AM
I have downloaded the trial Prometheus tools and am starting to play with tooltip and wanted to add to list item controls such as checkboxlist.
How would I go about this? Because checkboxlist doesn't have a tooltip property for each list item I'm guessing I have to add some javascript on Databound or some event similar. The tooltip would only have some simple text containing a link so I didn't really want to go to some data source for the data just wanted to type on page. Can you give me an indication of how I would go about this?

Regards
Alex

2 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 08 Jun 2007, 08:15 AM
Hello Axe,
You can just set a Title for all ListItems and place a RadToolTipManager on the page:

        <asp:CheckBoxList ID="CheckBoxList1" runat="server">  
            <asp:ListItem Title="First">First</asp:ListItem> 
            <asp:ListItem Title="Second">Second</asp:ListItem> 
            <asp:ListItem Title="Thirdt">Third</asp:ListItem> 
        </asp:CheckBoxList> 
        <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server">  
        </telerik:RadToolTipManager> 

Best wishes,
Tsvetie
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Axe
Top achievements
Rank 1
answered on 08 Jun 2007, 09:12 AM
Can't believe I didn't know there is a tooltip property on ListItem. Thanks for pointing that out.
Tags
ToolTip
Asked by
Axe
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Axe
Top achievements
Rank 1
Share this question
or