my treeview ::
var opcPath = "";
var dataSource = new kendo.data.HierarchicalDataSource({
transport: {
read: {
url: "../fwp/getOPCTree.fwp?opcPath=" + opcPath,
type: "GET",
dataType: "json"
}
},
schema: {
model: {
id: "opcPath",
hasChildren: "hasChildren"
}
}
});
//初始化OPC树
treeview = $("#opcTreeView").kendoTreeView({
select: onOPCTreeSelect,
dataSource: dataSource,
dataTextField: "nodeName",
dataSpriteCssClassField: "nodeCSS",
dataImageUrlField: "imageUrl"
});
the treeview is async!!!!
i can get the id "opcpath".
when the root is expand,
but the child is not expand,
then i want to expand the child child child .....node through the id.
how to do??
var opcPath = "";
var dataSource = new kendo.data.HierarchicalDataSource({
transport: {
read: {
url: "../fwp/getOPCTree.fwp?opcPath=" + opcPath,
type: "GET",
dataType: "json"
}
},
schema: {
model: {
id: "opcPath",
hasChildren: "hasChildren"
}
}
});
//初始化OPC树
treeview = $("#opcTreeView").kendoTreeView({
select: onOPCTreeSelect,
dataSource: dataSource,
dataTextField: "nodeName",
dataSpriteCssClassField: "nodeCSS",
dataImageUrlField: "imageUrl"
});
the treeview is async!!!!
i can get the id "opcpath".
when the root is expand,
but the child is not expand,
then i want to expand the child child child .....node through the id.
how to do??