Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Telerik RadTreeView 中默认设置 CheckBoxes="true"。但是基于某些条件,例如如果资源 id 为 0,则必须将复选框的可见性设置为 false,并且必须隐藏节点的展开图标。
您可以使用以下内容:
public void DisabledCheckBox() { foreach (RadTreeNode n in RadTreeView.GetAllNode()) { if( condition) { n.Checkable=false; } } }
问候
这可能可以通过以下方式完成: