6.1 kendo treeview functionality (wihtout + - to colllaps expand)
After trying kendo panelbar support told me to switch back to treeview.
But I am strugeling with the widget template.
a) of course I don't want all nodes expandes so I commented this line out
// kendoTreeView.expand(kendoTreeView.element.find(".k-item"));
var
selectedNodesToExpand = kendoTreeView.element.find(
"li:has(li a.sfSel)"
);
kendoTreeView.expand(selectedNodesToExpand);
Hello,
For the betterment of the community I am going to post the solution we found in your support ticket here.
<script type=
"text/javascript"
>
(
function
($)
varkendoTreeView = $(
'.sfNavTreeview'
).not(
'div.k-treeview .sfNavTreeview'
).kendoTreeView(
animation:
false
).data(
'kendoTreeView'
);
// to expand all nodes uncomment next line
// kendoTreeView.expand(kendoTreeView.element.find(".k-item"));
// to expand selected node uncomment next line
kendoTreeView.expand(kendoTreeView.element.find(
".sfSel"
));
)(jQuery);
</script>
Dear Patrick
Thank's. I did post it in my panelbar first time user thread but forgot about this.
If you now add it to the template for 6.2 then nobody has to look here :-)
Once again thanks for the easy, obvious solution.
Markus