How to make two drop down Dependent
Afficher commentaires plus anciens
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 commentaires
Geoff Hayes
le 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
le 29 Mai 2019
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Develop Apps Using App Designer dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!