Notifications
Announcements
No record found.
Hello AXers :)
I'm asking please on Dynamics 365 FO, is there is a way to add icons on TreeNode control,
For each tree node i want to show a specific icon.
like this on AX 2012
Hi Adax,
As per my knowledge the tree control is simplified and now only supports a check box indication: docs.microsoft.com/.../check-box-tree-controls
Hi André,
Thanks for your answer,
Yes, i've already checked this doc for check box support in tree controls on D365,
but i dont know if there is a way really to have customized icons, or at least getting standard icons
Is it really impossible to add icons on Tree Control on Dynamics 365 FO ?
As far as I know, the standard control is not supporting it. You can eventually build extensible controls: docs.microsoft.com/.../build-extensible-control
Hello Adax,
You can either use WPF controls or HTML5 controls. I referred to the following blog while building controls with icons. You can apply a similar logic to your code for adding icons to Tree controls.
https://bootes.co/Articles/Extensible-Controls-in-Dynamics-365-for-Finance-and-Operations-Tutorial
Hope this helps.
Thanks, Navneeth Nagrajan | Dynamics 365 Technical Consultant
Thanks for your answers, where can i find the stadanrd icons, is there any file on AOSPackageLocalDirectory i can use to get the icons ?
Here is my code:
But Always i can't see the icons : (
[Form] public class IconsTree extends FormRun { #ResAppl /// /// /// public void init() { SalesTable _Table; TreeItemIdx _TreeItemid; super(); MyTreeView.deleteAll(); //This is my Tree Control on Form MyTreeView.lock(); ImageListAppl dd = new ImageListAppl(); ImageRes imageRes = dd.image(#ImageFormButtonGroup); MyTreeView.setImagelist(dd.imageList()); while select * from _Table { _TreeItemid = SysFormTreeControl::addTreeItem(MyTreeView, "Sales Order :" _Table.SalesId ,FormTreeAdd::Root, _Table.RecId, #ImageOverlayYellowLock); SysFormTreeControl::addTreeItem(MyTreeView, " Customer Account : " _Table.CustAccount ,_TreeItemid , _Table.RecId); SysFormTreeControl::expandTree(MyTreeView,_TreeItemid); SysFormTreeControl::setOverlayImage(MyTreeView, _TreeItemid, imageRes); } } }
Here is the result
According to Microsoft, we can't use images / icons on Tree control on Dynamics 365 FO,
docs.microsoft.com/.../check-box-tree-controls
In parallel is there any other alternative to add icons on the tree control ?
Hi Navneeth,
Can you please explain to me, How can i create custom control, in my case i need a Form Tree Control with icons.
You mean using Telerik Controls for example ?
Where can i please find all the system icons used in ImageListAppl Class, is there any System File in AO Package directory , how can i call them in my formTreeControl ?
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 456 Super User 2025 Season 2
Martin Dráb 429 Most Valuable Professional
BillurSamdancioglu 239 Most Valuable Professional