Title attribute on TreeView (i.e. tooltip)

3 posts, 0 answers
  1. Gregg
    Gregg avatar
    13 posts
    Member since:
    Sep 2015

    Posted 12 Nov 2018 Link to this post

    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. Gregg
    Gregg avatar
    13 posts
    Member since:
    Sep 2015

    Posted 12 Nov 2018 in reply to Gregg Link to this post

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

     

  3. Dimitar
    Admin
    Dimitar avatar
    473 posts

    Posted 13 Nov 2018 Link to this post

    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.
Back to Top