Kendo UI treeview父节点没有复选框 [英] Kendo UI treeview parent node without checkbox

查看:344
本文介绍了Kendo UI treeview父节点没有复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么方法将实现显示TreeView与复选框,但我不需要复选框的父节点只有没有孩子的项目。即我正在显示文件夹结构,但不想为任何文件夹只有文件的复选框。

What approach will be to achieve displaying TreeView with checkboxs but I do not need checkbox for parents node only for "items" without children. i.e. I am displaying folder structure but do not want to have checkbox for any folder only for files.

谢谢。

推荐答案

您应该使用复选框模板。如果没有孩子,根本不显示复选框输入。
这是一个JSBIN示例我在说什么。

You should use use checkbox template. If there are not children do not display checkbox input at all. Here is a JSBIN example what I am talking about.

这篇关于Kendo UI treeview父节点没有复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆