Hi I have a treeview which is populated every time i select a row from grid which is a file name. I am currently adding the file size so I used a template -
<script id="treeview-template" type="text/kendo-ui-template">
<div class="layout-row">
<div class="item-stylingsize">#: item.text #</div>
<div class="item-stylingsize">#: item.size #</div>
</div>
</script>
since adding this template -
template: kendo.template($("#treeview-template").html()),
dataTextField: "text",
dataSource: tree,
select: onselect,
dataBound: function (e)
{
try
{
// uid is just some text
var uid = returnUID();
var treeview = $("#treeView").data("kendoTreeView");
var text = treeview.findByText(uid);
var itemroot1 = treeview.dataItem(text);
// expands to the correct node
treeview.expandTo(itemroot1);
// should select the correct node but does not
treeview.select(itemroot1);
}
My expandTo() function is not working because the findbytext() isnt working.
A separate issue is the select() function does not select a node.
Any help would be appreciated