Node Checking - Checkboxes and Radio Buttons 节点检查 - 复选框和单选按钮

Goto Nodes 节点

Node Checking - Checkboxes and Radio Buttons 节点检查 - 复选框和单选按钮

要选择节点,请使用节点检查功能,该功能为树级别启用内置复选框或单选按钮。在绑定模式下,您可以将节点检查状态与数据库字段同步。本文档详细介绍了此主题。

在这里插入图片描述

Enable Checkboxes/Radio Buttons 启用复选框/单选按钮

显示所有节点的复选框/单选按钮

将 TreeListOptionsView.CheckBoxStyle 属性设置为 Check 或 Radio。

在这里插入图片描述

treeList1.OptionsView.CheckBoxStyle = DefaultNodeCheckBoxStyle.Check;
//or
treeList1.OptionsView.CheckBoxStyle = DefaultNodeCheckBoxStyle.Radio;

TreeListOptionsView.CheckBoxStyle 属性指定所有 TreeList 节点的默认复选框显示模式。您可以覆盖根节点和任何节点的子节点的此设置,如下所示。

仅显示根节点的复选框/单选按钮

将 TreeListOptionsView.RootCheckBoxStyle 属性设置为 Check 或 Radio。将 TreeListOptionsView.CheckBoxStyle 属性设置为 Default。

在这里插入图片描述

treeList1.OptionsView.RootCheckBoxStyle = NodeCheckBoxStyle.Check;
treeList1.OptionsView.CheckBoxStyle = DefaultNodeCheckBoxStyle.Default;
//or
treeList1.OptionsView.RootCheckBoxStyle = NodeCheckBoxStyle.Radio;
treeList1.OptionsView.CheckBoxStyle = DefaultNo
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值