Hi Michael,
The X coordinate of the position of a TreeNodeUI object is:
uiNode.BoundingRectangle.Left
The bounds of the TreeNodeUI objects are in client coordinates, i.e. relative to the tree view control.
However, you should not need to offset the bounding rectangle, because it does not contain the area of the expand/collapse button (because it is represented by a different object). I tested again the code in my response and I could collapse the node by clicking on the expand/collapse button.
So, please try without offsetting the bounding rectangle. If it does not work I will need some more information about your case - for example what your structure of nodes looks like.
Sincerely yours,
Jordan
the Telerik team
Check out
Telerik Trainer, the state of the art learning tool for Telerik products.