PDA

View Full Version : Is it possible to render a ExtJs component to heaerTpl in Grouping grid



Zinnia
10 Dec 2014, 5:53 AM
Hi,
I have Grouping Grid with groupHeader Value as below
groupHeaderTpl : '<div id="chart_{[values.rows[0].data.groupName}]> </div>

is it possible to render a component to this div

Ext.create('Ext.Container',{
height: 20,
width: 50,
renderTo: Ext.get('chart_'+groupName),
html: 'test',
});

here I am setting the id value dynamically, and this is unique for each group.


Any help is greatly appreciated.

Thanks
Zinnia

lumberjack
12 Dec 2014, 1:41 PM
You could listen for the boxready event of the column, then render a component into the blank textEl.

Brian

https://fiddle.sencha.com/#fiddle/f11
f11