The TreeView has a method "dataItem" for accessing a model corresponding to a node. As the only argument it takes the HTML element (or it's jQuery selector or jQuery object).
Which HTML can or should be given to the method?
When looking at the generated HTML, there is roughly the following structure.
When trying the "li", "div", "first span", "second span", it seems as if all were accepted by "dataItem". Is this correct? Is this always so with all widgets?
Michael G. Schneider
Which HTML can or should be given to the method?
When looking at the generated HTML, there is roughly the following structure.
<
div
data-role
=
"treeview"
>
<
ul
class
=
"k-group k-treeview-lines"
>
<
li
class="k-item k-first">
<
div
class
=
"k-top"
>
<
span
class
=
"k-icon"
></
span
>
<
span
class
=
"k-in"
>text</
span
>
Michael G. Schneider