Skip to main content

Notifications

Community site session details

Community site session details

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

Checkbox on form tree control

(0) ShareShare
ReportReport
Posted on by 207

Hey all,

I'm looking for a solution to make checkbox on my form tree control.

I found some Microsoft documentation on it but i didnt understand how it works or where to write the specific code.

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/user-interface/check-box-tree-controls?WT.mc_id=DX-MVP-5000413#basic-check-box-use-for-tree-controls-in-the-current-version

Also, do you know some standard form example with this kind of tree control i didnt find on D365 ?

Thanksfully.

  • Awaxx Profile Picture
    207 on at
    RE: Checkbox on form tree control

     goshoom 

    What i need was just an explanation of the Ms documentation to have checkbox working with my tree control.

    And also i wanna be able to modify display state when checked

    Sorry for couldnt explain it better

    Thanks for trying

  • Martin Dráb Profile Picture
    232,114 Most Valuable Professional on at
    RE: Checkbox on form tree control

    No, sorry, it's still not clear to me what you need.

  • Awaxx Profile Picture
    207 on at
    RE: Checkbox on form tree control

    Hi goshoom

    Do you have a suggestion ?

    Thanksfully

  • Awaxx Profile Picture
    207 on at
    RE: Checkbox on form tree control

    Hi goshoom 

    Sorry for my poor explanation.

    Untitlednlknj.png

    That's a partial action, when i clicked the child item, the ascendant items are checked too still parent node.

    Untitledknk-bnbv.png

    There when parent node is clicked all child element descending are clicked too however its deep or not

  • Martin Dráb Profile Picture
    232,114 Most Valuable Professional on at
    RE: Checkbox on form tree control

    Sorry, but I have no idea what you mean by "it should tick all ascendant still parent node with partial action checking". Please don't be afraid of using multiple sentences.

  • Awaxx Profile Picture
    207 on at
    RE: Checkbox on form tree control

    If i m ticking a child first it should tick all ascendant still parent node with partial action checking

    And if i'm ticking parent node first it should tick all descendant child however how deep it is

  • Martin Dráb Profile Picture
    232,114 Most Valuable Professional on at
    RE: Checkbox on form tree control

    The first thing you'll need is the currently selected record. Do you know how to do it or not?

    Does you specification means that if I tick a child, it'll also tick all its descendents, and also the parent node and all it's descendents regardless of how deep? Or did you mean something else? Your specification isn't detailed enough...

  • Awaxx Profile Picture
    207 on at
    RE: Checkbox on form tree control

    For example

    if i select a child the parent node should have the partial checking color

    if i select parent, childs must have the same checked cross also

  • Martin Dráb Profile Picture
    232,114 Most Valuable Professional on at
    RE: Checkbox on form tree control

    Do you mean children and the parent node of the currently selected node? Or how do you identify the node you're interested in?

  • Awaxx Profile Picture
    207 on at
    RE: Checkbox on form tree control

    8270.Untitledmlm.png

    The logic i need for that part is a partial checking when  a child is clicked and checkbox checked when a parent is clicked. 

    Like the pictures on the documentation.

    Here parent 

    pastedimage1651843800188v1.png

    and here from child

    pastedimage1651843891546v2.png

    For now when i just change the checkbox property checkbox on treecontrol to yes i just get the checkbox but could't check anything

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,302 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,114 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans