How to make two drop down Dependent
Ältere Kommentare anzeigen
I have two drop down on my App Designer app, like this:
DropDown1.Items = {'1','2','3','4','5'};
DropDown1.ItemsData = [1,2,3,4,5];
DropDown2.Items = {'10','20','30','40','50'};
DropDown2.ItemsData = [1,2,3,4,5];
I would like to make this drop down dependent, so, if I choose on the DropDown1 the second option ({'2'}), the DropDown2 display the same position option (the second {'20'}) and so on any position I choose.
Is there any way to make this on App Designer or GUI?
2 Kommentare
Geoff Hayes
am 29 Mai 2019
Adrian - you can probably do something in the callback for the first drop down: when this fires (due to a change in the choice), then update the selected value in the second drop down.
Adrian Quesada
am 29 Mai 2019
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Develop Apps Using App Designer finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!