Nov 12, 2012, 8:42 PM
[CLOSED] TextArea as column editor corrupts GridPanel view
Hi,
I've a code setting up a column editor on the client. It works correctly for any simple controls except for a TextArea. When the cell is edited, the TextArea pushes the GridPanel header out of view. Please refer to the screenshots attached. Is there anything that can be done about it?
I've a code setting up a column editor on the client. It works correctly for any simple controls except for a TextArea. When the cell is edited, the TextArea pushes the GridPanel header out of view. Please refer to the screenshots attached. Is there anything that can be done about it?
var setEditor = function (e) {
var column = e.grid.getColumnModel().columns[e.column],
ed = column.getCellEditor(e.row);
if (ed) {
ed.destroy();
}
switch (e.record.get("attribute")) {
case "TextField":
column.setEditor(new Ext.form.TextField({
listeners:{
blur:{
fn:function(item,record,index){
e.record.set("value", this.getValue());
}
}
}
}));
break;
case "TextArea":
column.setEditor(new Ext.form.TextArea({
listeners:{
blur:{
fn:function(item,record,index){
e.record.set("value", this.getValue());
}
}
}
}));
break;
};
};
Last edited by Baidaly; Nov 13, 2012 at 8:19 PM.