I use Telerik Version=2011.3.11.1219 and try use TreeView control with TriStateMode.
Question 1: Also I want to prevent checking node due some conditions - for example, if node.ImageKey =
If I make that tree:

and try to check node "Node1" - I get this situation:

But it is obviously wrong! Nodes "Node1" and "Node8" have wrong state mode ("On" instead of "Indeterminate")
It should be like that (which I got if uncheck/check node "Node9"):

How can I fix that?
Question 2: How can I change view of checkbox in TriState mode? For example, I would like to change view for "Indeterminate" mode from filled green box to red tick.
Question 1: Also I want to prevent checking node due some conditions - for example, if node.ImageKey =
"class_grey" (some picture from imagelist container).Private Sub RadTreeView1_NodeCheckedChanging(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.RadTreeViewCancelEventArgs) Handles RadTreeView1.NodeCheckedChanging If Not e.Node.Checked AndAlso e.Node.ImageKey = "class_grey" Then e.Cancel = True End IfEnd SubIf I make that tree:
and try to check node "Node1" - I get this situation:
But it is obviously wrong! Nodes "Node1" and "Node8" have wrong state mode ("On" instead of "Indeterminate")
It should be like that (which I got if uncheck/check node "Node9"):
How can I fix that?
Question 2: How can I change view of checkbox in TriState mode? For example, I would like to change view for "Indeterminate" mode from filled green box to red tick.