Creating a node on Client Side and Setting a tooltip

7 posts, 0 answers
  1. Nkululeko Mthethwa
    Nkululeko Mthethwa avatar
    14 posts
    Member since:
    Jul 2009

    Posted 07 Jan 2010 Link to this post

    Hi,
    I am using a RadTreeView component of the 2008 Q2 Controls for ASP.NET AJAX,
    I need to create a node of a tree on clientside and set a normal tooltip, I fail dismal

    here is my first attempt
    var node = new Telerik.Web.UI.RadTreeNode(); 
    node.set_text("New Node"); 
    node.set_value("newValue"); 
     
    var myTree = $find('<%= myTreeView.ClientID%>'); 
    myTree.trackChanges(); 
     
    node.get_textElement().title = "myToolTip"// This line gives an error saying get_textElement is null 
     
    myTree.get_nodes.add(node) 
    myTree.commitChanges() 
    using node.get_element().id = "myID", gives the null error again, what should I do because I need to set a simple tooltip on node that was created on the client side?
  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1600 posts

    Posted 07 Jan 2010 Link to this post

    Hello Nkululeko Mthethwa,

    Consider using the set_toolTip property of the RadTreeNode client object. You can use it like this:

    node.set_toolTip("my tooltip");


    Greetings,
    Genady Sergeev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Nkululeko Mthethwa
    Nkululeko Mthethwa avatar
    14 posts
    Member since:
    Jul 2009

    Posted 07 Jan 2010 Link to this post

    Thank you Genady, but I tried that as well but it give the error
    "Microsoft JScript runtime error: Object doesn't support this property or method"

  4. Nkululeko Mthethwa
    Nkululeko Mthethwa avatar
    14 posts
    Member since:
    Jul 2009

    Posted 07 Jan 2010 Link to this post

    somebody please help me!
  5. Dimitar Milushev
    Admin
    Dimitar Milushev avatar
    555 posts

    Posted 08 Jan 2010 Link to this post

    Hello Nkululeko,

    Can you please check if you are using the latest version of Telerik.Web.UI.dll? You should be seeing this error with the latest version.

    Sincerely yours,
    Dimitar Milushev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Nkululeko Mthethwa
    Nkululeko Mthethwa avatar
    14 posts
    Member since:
    Jul 2009

    Posted 12 Jan 2010 Link to this post

    What is the latest version, I am using 2008.2.708.20
  7. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 14 Jan 2010 Link to this post

    Hello Nkululeko Mthethwa,

    The latest official version is 2009.3.1208

    All the best,
    Veskoni
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top