没有复选框的剑道 UI 树视图父节点 [英] Kendo UI treeview parent node without checkbox

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

问题描述

实现显示带有复选框的 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.

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

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