This question is locked. New answers and comments are not allowed.
Hi,
I found that if I bind the data to the treeview in the client-side, the "expaned" property won't work.
Look at the following simple code snippet:
The result is in the attachement "result.png":
I found that if I bind the data to the treeview in the client-side, the "expaned" property won't work.
Look at the following simple code snippet:
<div class="t-widget t-treeview t-reset" id="TreeView"></div><script type="text/javascript"> jQuery(function () { jQuery('#TreeView').tTreeView({ onDataBinding: onDataBinding }); }); function onDataBinding(e) { var treeview = $('#TreeView').data('tTreeView'); var jsonObject; if (e.item == treeview.element) { jsonObject = [ { Text: "Product 1", Expanded: false, Items: [ { Text: "Product 4", Items: [ { Text: "Product 6", Value: 6 }, { Text: "Product 7" } ] } ] } ]; treeview.bindTo(jsonObject); } }</script>The result is in the attachement "result.png":