PDA

View Full Version : Using store data in expander rows in a grid



Spiff1
21 Oct 2013, 5:14 AM
Hello,

i wonder how i can display data from several records of a store in an expanded row of a grid.
My store consists of several records with parts that belong to several devices. Each device is put together out of one to four parts.
Each record has got a unique part number and a not unique device number.

With my grid i like to show all devices. Once you click on the row expander button you see the details (all parts belonging to one device).

I don't know how i could display data from other records (that have the same device number) within the expanded row. The example (like http://docs.sencha.com/extjs/4.2.1/#!/example/build/KitchenSink/ext-theme-neptune/#grouped-grid) just shows data from the same record.

Spiff1

scottmartin
24 Oct 2013, 6:30 AM
Have a look at this plugin:
https://github.com/mitchellsimoens/Ux.grid.plugin.AssociationRowExpander

Examples show grid under expanded row

Scott.