Sunday, October 2, 2016

Tree Control issue during adding Child node

Hi guys

A colleague reach me because a Form with a Tree control did not work as expected.

The Child node added at runtime do not appear on the Tree, also after the Expand method.

The trick is use the SysFormTreeControl Class, expandTree method.

More exactly, at the end of the init of the Form are been called the following methods:

SysFormTreeControl::expandTree(tree, tree.getRoot());
SysFormTreeControl::collapseTree(tree, tree.getRoot());

Finally, after every new child added at runtime, is been raised only the expandTree method.

Stay Tuned!

1 comment:

dynamics ax said...

Thank you for presenting such a useful topic about Tree Control issue during adding Child node in Microsoft Dynamics AX. From my point of view, it will be helpful for many users.