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

Title attribute on TreeView (i.e. tooltip)

2 Answers 64 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Gregg
Top achievements
Rank 1
Gregg asked on 12 Nov 2018, 01:04 PM

I have the following schema for my TreeView:

var schema = {
    model: {
        id: "toolId",
        children: 'items',
        fields: {
            name: { type: 'string' },
            description: { type: 'string' }
        }
    }
};

 

And here is the TreeView definition:

$("#toolSelect_toolTree").kendoTreeView({
 
    loadOnDemand: false,
    animation: {  expand: { effects: "expandVertical", duration: 100 } },
    checkboxes: {
        checkChildren: true
    },
    dataSource: {
        data: [],
        schema: toolSelect_funcs.schema
    },
    dataTextField: 'name',
    dataValueField: 'toolId'
});

 

How do I set the title attribute (i.e. tool tip text) on each tree node so it has the value of the description field?

I've done it with the Kendo MVC using LinkHtmlAttributes. Is there something similar in Kendo UI for jQuery?

Thanks, Gregg

 

2 Answers, 1 is accepted

Sort by
0
Gregg
Top achievements
Rank 1
answered on 12 Nov 2018, 08:23 PM

Never mind - I solved it using a template with a span that has a title attribute.

 

0
Dimitar
Telerik team
answered on 13 Nov 2018, 08:21 AM
Hi,

Thank you for sharing the resolution approach used with the community.

Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
TreeView
Asked by
Gregg
Top achievements
Rank 1
Answers by
Gregg
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or