web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Show icons of Tree Node control in D365FO

(0) ShareShare
ReportReport
Posted on by 336

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

pastedimage1575038245194v1.png

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,130 Super User 2025 Season 2 on at

    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

  • AdnDalhi Profile Picture
    336 on at

    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

  • AdnDalhi Profile Picture
    336 on at

    Is it really impossible to add icons on Tree Control on Dynamics 365 FO ?

  • André Arnaud de Calavon Profile Picture
    301,130 Super User 2025 Season 2 on at

    Hi Adax,

    As far as I know, the standard control is not supporting it. You can eventually build extensible controls: docs.microsoft.com/.../build-extensible-control

  • Navneeth Nagrajan Profile Picture
    2,438 Super User 2025 Season 2 on at

    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

  • AdnDalhi Profile Picture
    336 on at

    Thanks for your answers, where can i find the stadanrd icons, is there any file on AOSPackageLocalDirectory i can use to get the icons ?

  • AdnDalhi Profile Picture
    336 on at

    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 

    pastedimage1575983137568v1.png

  • AdnDalhi Profile Picture
    336 on at

    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 ?

  • AdnDalhi Profile Picture
    336 on at

    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 ?

  • AdnDalhi Profile Picture
    336 on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 456 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans