-1

i am new to kendo UI i want to add id for kendo tree view elements with help of template. Here

$("#tree-view").kendoTreeView({
    loadOnDemand:false,
    dataSource: LOB,
    dragAndDrop:true,
    dataTextField: ["Name","NAME","Name"],
    template:"<span id='#=item.Id#' >#=item.Name#</span> " ,

it return only the "Name" id's. it was unable to give "NAME" dataTextfield id's.could anyone help me out.

Thank you.

ezanker
  • 24,628
  • 1
  • 20
  • 35
developer
  • 23
  • 2
  • 1
    What does your data source look like? Can you create a DOJ/CodePen that reproduces the issue? – ezanker Mar 28 '18 at 13:52

1 Answers1

0

Here is a dojo page where a similar scenario is behaving correctly.

Plamen Zdravkov
  • 748
  • 5
  • 7