0

I have multiple combo boxes which should be inter related. I need to change the combo box values based on a value selected in one combo box.

Say, If I select one Category in combo box, then all the other combo boxes should be getting values which are related to Category.

Please have a look at the table below:

enter image description here

Anand Singh
  • 317
  • 5
  • 8
  • 22

2 Answers2

0

If you have a lot of values ​​in your combo-box, it's not necessary to early load all.

You can fill them "manually" by a "querymode : local".

So, your query who fill your combo should depends on the others

Toldy
  • 1,241
  • 1
  • 14
  • 27
0

Each combobox needs to be assigned a store .

In your case, you can create one store with only Categories data and another store with all the data shown in your grid one for each of the dependent combo boxes.

Using onselect event listener of Categories dropdown, you can filter the stores of the dependent comboboxes.

(If you want to know how to define a combobox and store, you can look at the below example http://try.sencha.com/extjs/4.1.1/docs/Ext.form.field.ComboBox.1/ and several others from sencha docs.)

Prasad K - Google
  • 2,584
  • 1
  • 16
  • 18