PDA

View Full Version : How to assign different stores to different cells in a grid.



Swetosuvro
15 Mar 2013, 9:05 AM
I have a grid on which i am loading items.I have another column "UOM", which is a combo box.
Based on the items load on a particular row, data has to be loaded on the UOM column.
I need to load different set of UOM's of different Items.
Please let me know if this can be done.

Please refer to the attached screen shots.

mitchellsimoens
17 Mar 2013, 8:09 AM
So you need to specify a store for the combobox?

Swetosuvro
17 Mar 2013, 10:19 PM
Yes, I want to specify different Stores for each combo box, based on the Item Selected.

grgur
18 Mar 2013, 4:23 AM
You mean change the store of a combobox based on the row? In the same column, that is?

What you're working with here is a single combobox, shown on various positions, based on the row selected. That means, you will have to cache the instance of it and update it as needed. Either give it an itemId and use a component query or instantiate it first, then use the instance instead of xtype when specifying the column's editor.