kendo ui treeview设置节点选中
2016-04-13 18:08
811 查看
vartreeview = $("#treeView").data("kendoTreeView");
if(treeview){
treeview.select($());
vartreeNodeData = treeview.dataSource.get(treeNodeId); // treeview.dataSource.options.data[1];
if(treeNodeData){
vartreeNode = treeview.findByText(treeNodeData.text); //根据节点文本进行搜索(请根据实际情况来定),类似的还有treeview.findByUid(id);
if(treeNode){
treeview.select(treeNode); //设置节点选中,
}
}
}
参考地址: http://www.telerik.com/forums/programatically-select-a-tree-node
Hello Andrew,
To achieve this I can suggest the following approach:
Get the dataItem via the get method of the dataSource;
Use the findbyuid method of the TreeView, which searches a TreeView
for a node with the given unique identifier;
In the select method set the result from the previous step.
Regards,
Iliana Nikolova
the Telerik team
if(treeview){
treeview.select($());
vartreeNodeData = treeview.dataSource.get(treeNodeId); // treeview.dataSource.options.data[1];
if(treeNodeData){
vartreeNode = treeview.findByText(treeNodeData.text); //根据节点文本进行搜索(请根据实际情况来定),类似的还有treeview.findByUid(id);
if(treeNode){
treeview.select(treeNode); //设置节点选中,
}
}
}
参考地址: http://www.telerik.com/forums/programatically-select-a-tree-node
Hello Andrew,
To achieve this I can suggest the following approach:
Get the dataItem via the get method of the dataSource;
Use the findbyuid method of the TreeView, which searches a TreeView
for a node with the given unique identifier;
In the select method set the result from the previous step.
var
treeview = $(
"#treeview"
).data(
"kendoTreeView"
);
var
getitem = treeview.dataSource.get(9125);
treeview.findByUid(getitem.uid);
var
selectitem = treeview.findByUid(getitem.uid);
treeview.select(selectitem);
Regards,
Iliana Nikolova
the Telerik team
相关文章推荐
- AVOSCloud(AVOSCloud.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode se
- iOS-UIView坐标系转换-convertRect toview
- does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), o
- UITextView 控制输入字数总结
- 错误: Unknown class XXX in Interface Builder file
- xml:Invalid byte 2 of 2-byte UTF-8 sequence
- android5.1添加Email分享,bluetooth分享
- 自定义UIActivityIndicatorView大小
- IOS-UI学习笔记(九宫格应用管理)
- 从客户端中检测到有潜在危险的 Request.Form 值
- easyui webapi
- 使用手势对UIImageView进行缩放、旋转和移动
- 使用手势对UIImageView进行缩放、旋转和移动
- Java集合(三):Queue队列
- MySQL关于Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp
- POJ 3061 Subsequence
- Reveal逆向工程:分析任意iOS应用的UI界面
- Xcode使用介绍之五:初识UI控件
- easyUI动态columns
- String , StringBuffer, StringBuilder的区别