View Full Version : using ext component as plugin for another component

12 Jun 2013, 3:55 AM
i want to bind a gridPanel to a combobox as a plugin. and my problem is how to render the gridpanel and attach it to combobox. i didn't find any useful link or tutorial related to the subject. all tutorials discuss about attaching html tags like <div> and i cant really find a way to attach an Ext component like grid panel to a combo to be rendered below it as an integrated component.
any hint ?


14 Jun 2013, 9:32 AM
You might check out the source on this ux:

14 Jun 2013, 10:45 AM
ok , that's not what i really need. the picker is a picker , you may raise it in certain situation like a trigger click or something similar . here is the exact problem. i have a combobox, and i need a grid below it , when user clicks an item in combo , the item should be appear in grid , inf act grid is acting as a vessel. grid is always there and this mean i need to render the grid on when the combo renders . imagine you are adding the grid as plugin , so you need to render it when the parent , in this case the combo , is rendering . where the plugin render itself? i couldn't figure it out using domHelper. in fact ,i'm looking for a way to treat a combobox as a container to add the grid as the child item

14 Jun 2013, 1:51 PM
You might look at the source on MultiSelect:

That's the best example I can think of that constructs a single component from multiple.