PDA

View Full Version : Two Problems about Ext.grid.Panel



bill_chuang
19 May 2012, 5:14 AM
Hi,guys
Now I encountered two problem when I use the Ext.grid.Panel component.
First Problem:
below is the class I defined my grid panel:

Ext.define('MyExtView.view.MySymptomSelectList' ,{

extend: 'Ext.grid.Panel',
alias : 'widget.SymptomSelectList',
store:'SymptomStore',
border:0,
layout:'auto',
autoScroll:true,
frame:true,
selType: 'cellmodel',
plugins: [
Ext.create('Ext.grid.plugin.CellEditing', {
clicksToEdit: 1
})
],
initComponent: function() {
this.selModel = Ext.create('Ext.selection.CheckboxModel');
this.columns = [{
header: '??',
dataIndex: 'symptom_id',
flex: 1
},
{
header: '????',
dataIndex: 'selectable_symptom',
flex: 1
},
{
header: '?????',
dataIndex:'symptom_similarity',
flex:1,
field:{
xtype:'textfield',
allowBlank:false
}
}];
this.callParent(arguments);
}
});

But when I select the checkbox ,the error occurs in the firebug:

"column.getEditor is not a function



* @method syncRequire


"
35425
when I delete the "plugins" item in the grid panel definition,there's no error.I don't know why.Second Problem:How can I set the checkbox selected initially when I show the GridPanel window like this:

35424
how to realize it?
can Anybody help me?
3KS

scottmartin
21 May 2012, 7:33 AM
Duplicate post:
http://www.sencha.com/forum/showthread.php?207712

Regards,
Scott.