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

Treeview - Setting Tool tip to tree view nodes with Load on Demand

1 Answer 184 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Anish
Top achievements
Rank 1
Anish asked on 27 Feb 2013, 06:17 PM
I am using Kendo Tree View in Windows 7 and IE-8 inside Kendo Splitter control. We have load on demand implemented which will load data/child nodes  on expanding each node.
How can I set “Tool Tip” to each node of this Kendo tree view.

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 01 Mar 2013, 12:32 PM
Hello Anish,

I posted a replay in the support ticket that you opened. For reference I will paste it here too.

Feel free to continue the conversation here or in the support ticket.

----------------
------------------------------------------------------------------------------------------------------------------------------

It depends how exactly you add the items to the TreeView.

Basically to add a tooltip you should use the title HTML attribute to the node.
e.g.

Copy Code
.Items(images =>
{
images.Add().Text("logo.png")
  .HtmlAttributes(new { title="Fooo"})

If binding to Model via Ajax you will need to create template:

Copy Code
.Template("<div title='#=item.Name#'>#=item.Name #</div>")
where Name is a property from the Model which you return from the Action Method which serves the collection.



Kind regards,
Petur Subev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
TreeView
Asked by
Anish
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or