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

RadToolTipManager Not working

1 Answer 100 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Aarsh
Top achievements
Rank 1
Aarsh asked on 20 Sep 2012, 10:35 PM
friends, I must be missing something here please help.. Thanks

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
        <telerik:RadTreeView ID="RadTreeView0" runat="server">
            <NodeTemplate>
                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="http://www.bing.com">[ View ]  </asp:HyperLink>
                <%# DataBinder.Eval(Container, "Text") %>
            </NodeTemplate>
        </telerik:RadTreeView>
        <telerik:RadToolTipManager ID="ToolTipManager1" runat="server" AutoTooltipify="true"
            ToolTipZoneID="RadTreeView0" Position="TopCenter" Animation="Resize" RelativeTo="Element"
            Title="Employee Details" HideEvent="ManualClose" ShowCallout="false" ContentScrolling="Auto"
            Width="300px" Height="200px"></telerik:RadToolTipManager>
    </div>
    </form>
</body>
</html>

using Telerik.Web.UI;
 
public partial class Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        RadTreeNode category1 = new RadTreeNode("Group1", "Group1");
        RadTreeNode Category1Node;
        RadTreeNodeCollection radCollection = new RadTreeNodeCollection(category1);
        for (int i = 5 - 1; i >= 0; i--)
        {
            Category1Node = new RadTreeNode(i.ToString(), i.ToString());
            category1.Nodes.Add(Category1Node);
        }
        RadTreeView0.Nodes.Add(category1);
 
 
        RadTreeNode category2 = new RadTreeNode("Group2", "Group2");
        RadTreeNode category3 = new RadTreeNode("Group3", "Group3");
        RadTreeNode Category2Node;
        radCollection = new RadTreeNodeCollection(category2);
        for (int i = 3 - 1; i >= 0; i--)
        {
            Category2Node = new RadTreeNode(i.ToString(), i.ToString());
            category2.Nodes.Add(Category2Node);
        }
        RadTreeView0.Nodes.Add(category2);
 
        RadTreeView0.Nodes.Add(category3);
 
    }
}

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 25 Sep 2012, 07:35 AM
Hi Aarsh,

The nodes do not have tooltips by default (i.e. they do not have the title attribute set), so there isn't a source for the tooltip manager to get tooltips from.


Greetings,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ToolTip
Asked by
Aarsh
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or