Posted 24 June 2024, 8:31 am EST
Hello Duyet,
We apologize for the oversight, but there is also a direct method that works similarly to Excel’s button bar. You can set Tree.Style to TreeStyleFlags.ButtonBar | TreeStyleFlags.CompleteLeaf as follows:
flex.Tree.Style = TreeStyleFlags.ButtonBar | TreeStyleFlags.CompleteLeaf;
Please refer to the attached modified sample for implementation. (see TreeNode_Mod.zip)
The custom implementation we provided in the previous response includes an extra feature: you can collapse and expand the nodes with consecutive button clicks. You can choose whichever solution best meets your requirements.
Regards,
Uttkarsh.