Hi,
I am dynamically building a ul and then applying a kendoTreeView() on it everything is working prefectly fine but I am struggling to sore the tree as there is no method provided and I can't apply any logic as i am building very complicated ul.
My code as below:
can you please show any pointers towards solution.
I am dynamically building a ul and then applying a kendoTreeView() on it everything is working prefectly fine but I am struggling to sore the tree as there is no method provided and I can't apply any logic as i am building very complicated ul.
My code as below:
function BuildTree() { $(xmlDoc.getElementsByTagName("Item")).each(function () { var thisItem = $(this); var list = " "; var list1 = " "; $(parentIDFields).each(function (index, item) { if (thisItem.attr(item) != null && thisItem.attr(descriptionCol) != null) { if (index == 0) { list += "<li id=" + thisItem.attr("ID") + " onclick=sendHTML(" + thisItem.attr("ID") + ");>" + thisItem.attr(item); list1 += "</li>"; } else { list += "<ul><li id=" + thisItem.attr("ID") + " onclick=sendHTML(" + thisItem.attr("ID") + ");>" + thisItem.attr(item); list1 += "</li></ul>"; } } }); $("#treeView").append(list + "<ul><li id=" + thisItem.attr("ID") + ">" + thisItem.attr(descriptionCol) + " </li></ul>" + list1); }); $(document).ready(function () { $("#treeView").kendoTreeView(); });}can you please show any pointers towards solution.