Is MultiSelect possible with the Checkbox Tree? (App Designer)

The normal tree app component has the MultiSelect property. The checkbox tree (introduced in 2021a), however, has not and, so far, I have not been able to enable the selection of multiple child nodes of the checkbox tree. Is it possible to circumvent this limitation?

Antworten (1)

Nikhil Sonavane
Nikhil Sonavane am 26 Mär. 2021
Bearbeitet: Nikhil Sonavane am 26 Mär. 2021

0 Stimmen

I tried to reproduce your issue but couldn't. In MATLAB 2021a, I am able to create a checkbox tree where I can select multiple child nodes. Can you add some more details about the issue that you are facing?
You can refer to the documentation for more details

4 Kommentare

I thinks he is referring to selected nodesI cannot select multiple nodes, either. I can just check/uncheck them but I want to select them. Is there a reason the MultiSelect property is not implemented for checkboxtrees?
In MATLAB 2022a this is still not possible. Setting the SelectedNodes property to multiple nodes gives the following error:
'SelectedNodes' must be an empty array or a 1-by-1 TreeNode object that is a child in the CheckBoxTree.
In Matlab 2023b it is still not possible
Still not possible in Matlab 2025b
>> hTreeRoot.SelectedNodes = hTreeRoot.Children(1:3)
'SelectedNodes' must be an empty array or a 1-by-1 TreeNode object that is a child in the CheckBoxTree.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Develop Apps Programmatically finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2021a

Gefragt:

am 18 Mär. 2021

Kommentiert:

am 22 Okt. 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by