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

Creating a node on Client Side and Setting a tooltip

6 Answers 65 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Nkululeko Mthethwa
Top achievements
Rank 1
Nkululeko Mthethwa asked on 07 Jan 2010, 07:53 AM
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?

6 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 07 Jan 2010, 03:55 PM
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.
0
Nkululeko Mthethwa
Top achievements
Rank 1
answered on 07 Jan 2010, 06:05 PM
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"

0
Nkululeko Mthethwa
Top achievements
Rank 1
answered on 07 Jan 2010, 06:06 PM
somebody please help me!
0
Dimitar Milushev
Telerik team
answered on 08 Jan 2010, 04:21 PM
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.
0
Nkululeko Mthethwa
Top achievements
Rank 1
answered on 12 Jan 2010, 02:41 PM
What is the latest version, I am using 2008.2.708.20
0
Veselin Vasilev
Telerik team
answered on 14 Jan 2010, 04:23 PM
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.
Tags
TreeView
Asked by
Nkululeko Mthethwa
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Nkululeko Mthethwa
Top achievements
Rank 1
Dimitar Milushev
Telerik team
Veselin Vasilev
Telerik team
Share this question
or