View Full Version : Linked comboBoxes. How to implement?

8 Aug 2007, 5:50 AM
I saw several topics on this theme, but without any solution. How to implement a form where one comboBox depends on another and if the first comboBox value has been changed, second comboBox options should be reloaded?

8 Aug 2007, 6:39 AM
This should be accomplished with events. Attach event to first combobox inside of it call load of second combobox.

8 Aug 2007, 7:00 AM
I'm ok with events but exactly "load of second combobox" confusing me. How? Let's assume that I've already get the JSON to load to the second combo. Something like:

['0', 'value 1'],
['1', 'value 3'],
['2', 'value 3'],

What should I do now?

8 Aug 2007, 7:42 AM
Take a look at http://extjs.com/forum/showthread.php?p=32148#post32148

8 Aug 2007, 11:11 PM
Thanks, Fay! It works for me.