To enable/disable a user from changing node's checkbox state, the only way is to go through all the nodes and set TcxTreeListNode.Enabled property.
It would be more easy just to have one property like this in TcxTreeList irself:
TcxTreeList.EnableCheckBoxClick : boolean;
This is a must in my case because some users are allowed to change the nodes checkbox state and other users don't.
And even for the users who can, I still want them to first click the Edit button before they can do changes in the treelist.
But I still want the treelist to show the checkboxes, but only in readonly mode.
Any news on this one?
Can't find a way to prevent a user from changing the node's checkbox, without having to go through all the nodes and set TcxTreeListNode.Enabled property.
Using the OnClick event and checking the HitTest for HitAtCheckButton=True, also doesn't work.
One possible solution could be a new event: OnCanCheckNode(Sender: TcxCustomTreeList; var AllowChange: boolean);
In this case we would just change the AllowChange parameter as we need.