PDA

View Full Version : What is event after reconfigure grid column finish?



earist
22 May 2014, 2:15 AM
I have tried to create grid with dynamic column by following example code:




if (grid.lockedGrid)
{
grid.lockedGrid.headerCt.removeAll(true);
grid.reconfigureLockable(grid.store, columns);
}
else
{
grid.headerCt.removeAll(true);
grid.reconfigure(grid.store, columns);
}
grid.getView().refresh();
grid.doLayout();


Above can work fine.
However, I would like to add some styles to each cell after the all columns are rendered.

How do I know when all columns are rendered completely after reconfigure grid column?
Is there any event after reconfigure?

Thank in advance.
earist.

Gary Schlosberg
23 May 2014, 3:28 PM
How about the reconfigure event?
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.grid.Panel-event-reconfigure