PDA

View Full Version : How to remove item aftering rendering to?



dbassett74
25 Aug 2009, 7:25 AM
I use the following code to render a panel to a cell in a grid:



var tr = Ext.get(grid.view.getRow(rowIndex));
var cell = tr.query(".x-grid3-row-body")[0];
pnl.render(cell)


Later on, I need to remove pnl from the cell. How would I do this?

Animal
25 Aug 2009, 7:42 AM
Call destroy upon that Panel.