1

CheckBoxes="true" is set by default in a Telerik RadTreeView. But based on certain condition like if the resource id is 0 then the visibility of the check box must be set to false and the expand icon of the node must be hidden.

Rohini
  • 31
  • 2
  • 7

2 Answers2

0

you can use the Following:

public void DisabledCheckBox()
{
foreach (RadTreeNode n in RadTreeView.GetAllNode())
{
if( condition)
{
n.Checkable=false;
}
}
}

regards

Adam
  • 3,815
  • 29
  • 24
0

This can probably be done by:

  • iterating through the treeview nodes (when build), for example inside the NodeCreated event handler
  • locating the checkbox inside when node via the Controls collection
  • setting its visible property accordingly
Dick Lampard
  • 2,256
  • 1
  • 12
  • 7