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

[Solved] Using Javascript to set a tooltip on a node

1 Answer 131 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 14 Apr 2008, 06:40 AM
Hi

How do I use Javascript to add a tooltip to a node?

I can set text, values and image url's but I couldn't find any documentation to do this client side, only server side.


Kind regards

Mark Eaton

1 Answer, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 14 Apr 2008, 08:49 AM
Hi Mark,

You can use the following apprach:

//Get the node client-side object
var tree = $find("<%=RadTreeView1.ClientID %>");
var node = tree.get_nodes().getNode(0);

//Set the title attribute of the node's DOM element
node.get_element().setAttribute('title', 'something');


Sincerely yours,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
Mark
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or