PDA

View Full Version : Form html rerender



simon
20 Jul 2009, 7:42 AM
I have window with form inside. When user clicks on the row in the grid, I show the window and set the HTML of a form with the data related to the clicked row.
It works:


var wConf = new Ext.Window(
{
id: 'wConf'
, layout: 'form'
, height: 300
, width: 815
, title: 'Complaint prewiev'
, items: [
{
xtype: 'form',
id: 'formUpload',
fileUpload: true,
height: 300
}
]
});

rs.on('rowselect', function(sm, rowNumber, record) {
//create some html
var html='test'+rowNumber;
Ext.getCmp('formUpload').html = html;
if (!wConf.isVisible())
wConf.show();
}


When user clicks second time on some other row, the new html is generated, but the form has still the same data as before. Is there some event, like form rerender with new html or something similar?

Thank you,
Simon