Hi,
I am forming the JSON object as below manually, pushing it to an array and provide it as datasource to kendo tree view.
Everything seems to work fine except for filter functionality..
Filtering seems to happen very slow when there are more entries in the tree hence I assigned
the below array to hierarchical data source and assigned the hierarchical datasource as source for
tree view. This solved the filtering issue but whenever I click any particular node it takes sometime
to view its child nodes. Is there a way to avoid this delay in loading child nodes when using
hierarchical data source?
contextpath= {
text: "TreeRoot",
items: [ {
text: "subgroup1" ,
items: [ {
text: "subgroup2",
items: [ {
text: "subgroup3"
}]
}]
}]
}]
};
contextpath1= {
text: "TreeRoot",
items: [ {
text: "subgroup1" ,
items: [ {
text: "subgroup2",
items: [ {
text: "subgroup3"
}]
}]
}]
}]
};
array1.push(
contextpath
)array1.push(
contextpath1
).var localDataSource = new kendo.data.HierarchicalDataSource({
data:array1
});
var groupTree1 = $("#"+elementId).kendoTreeView({
dataSource: localDataSource
}).data("kendoTreeView");
Thanks,
Barani