PDA

View Full Version : how can get a editable combobox with a dropdown gridpanel



dgjack
9 Oct 2013, 9:57 AM
Hi,everybody.I want a editable combobox with a dropdown gridpanel,not a can not edit one.
The following is code:
var recno = new Ext.form.ComboBox({
store:new Ext.data.SimpleStore({fields:['value','text'],data:[['','']]}),
mode: 'local',
editable:false,
listWidth:800,
triggerAction:'all',
fieldLabel:'recno',
tabIndex:1,
width:120,
maxHeight: 500,
valueField:'value',
displayField:'text',
name:'recno',
tpl: '<tpl for="."><div style="height:200px;width:300px;"><div id="productinnoid"></div></div></tpl>',
selectedClass:'',
onSelect:Ext.emptyFn
});
recno.on('expand',function(){
headgrid.render("productinnoid");
})
//gridgrid get data from database.attention recno is editable.when editable=false,it works well,but,when it editable,i change it's value,and save,and dropdown it again,the grid can not display.The error msg in ie is can not set the innerHTML,the object is null.Does anyone know why?

israelroldan
14 Oct 2013, 1:13 PM
Which version are you using?
I have no problem displaying the grid when declared as editable:true.

Maybe this is a browser issue? Which browser/os are you using?