PDA

View Full Version : formpanel inside row of grid



sntial
9 Oct 2010, 6:58 AM
Is it possible to have each record inside a grid contain one column which is a form panel?

I haven't figured out how to return anything from the renderer function other than HTML.

I could hand code it, but I have a couple of dropdowns and file input which I was hoping to use ExtJs objects.

Condor
9 Oct 2010, 7:17 AM
You could use:

renderer: function(v, meta){
var id = Ext.id();
meta.attr = 'id="' + id + '"';
var form = new Ext.form.FormPanel({...});
form.render.defer(1, form, [id]);
}
But be aware that changing the row won't destroy the form, so you could end up leaking memory.

sntial
9 Oct 2010, 7:24 AM
thanks. i'll give that a try.

i've seen some memory leaks with IE anyway. typically i introduce a page reload at certain points in the application to clean things up (make sure users don't keep the same page open for several hours).