Adding tooltip to checkboxlist

3 posts, 0 answers
  1. Axe
    Axe avatar
    88 posts
    Member since:
    Feb 2007

    Posted 06 Jun 2007 Link to this post

    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. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 08 Jun 2007 Link to this post

    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
  3. Axe
    Axe avatar
    88 posts
    Member since:
    Feb 2007

    Posted 08 Jun 2007 Link to this post

    Can't believe I didn't know there is a tooltip property on ListItem. Thanks for pointing that out.
Back to Top