PDA

View Full Version : Urgent Help : Ext.isDefined is not a function



rxbass
18 Oct 2012, 11:14 PM
I'm using checkboxCombo extension in ext js 3 for multiselection .
I'm getting the following error : Ext.isDefined is not a function



onRender: function(ct, position){
if (this.hiddenName && !Ext.isDefined(this.submitValue)){
this.submitValue = false;
}
Ext.ux.form.CheckboxCombo.superclass.onRender.call(this, ct, position);
if (this.hiddenName){
this.hiddenField = this.el.insertSibling({tag:'input', type:'hidden', name: this.hiddenName, id: (this.hiddenId||this.hiddenName)}, 'before', true);
}
if (Ext.isGecko){
this.el.dom.setAttribute('autocomplete', 'off');
}
if (!this.lazyInit){
this.initList();
} else {
this.on('focus', this.initList, this, {single: true});
}
},



Please help at the earliest.
Thanks

rxbass
18 Oct 2012, 11:41 PM
I'm using checkboxCombo extension in ext js 3 for multiselection .
I'm getting the following error : Ext.isDefined is not a function



onRender: function(ct, position){
if (this.hiddenName && !Ext.isDefined(this.submitValue)){
this.submitValue = false;
}
Ext.ux.form.CheckboxCombo.superclass.onRender.call(this, ct, position);
if (this.hiddenName){
this.hiddenField = this.el.insertSibling({tag:'input', type:'hidden', name: this.hiddenName, id: (this.hiddenId||this.hiddenName)}, 'before', true);
}
if (Ext.isGecko){
this.el.dom.setAttribute('autocomplete', 'off');
}
if (!this.lazyInit){
this.initList();
} else {
this.on('focus', this.initList, this, {single: true});
}
},



Please help at the earliest.
Thanks

Here is my code for checkboxcombo


var vehicle = new Ext.ux.form.CheckboxCombo({
name : 'Vehicle',
hiddenName : 'vehicle',
triggerAction : 'all',
renderTo: 'vehicle',
width: 250,
mode: 'local',
editable : false,
selectOnFocus : true,
forceSelection : true,
fieldLabel : 'Vehicle',
value : 'Select Vehicles',
emptyText:'Select a Vehicle',
queryMode : 'local',
valueField : 'object_id',
displayField : 'object_id',
multiSelect: true,
store : vehicles,
columns: [
{
dataIndex: 'object_id',
width: 100
}
],
listeners: {
'change': function(cmb, arr) {
console.log('Change Event Fired', arr);
}
}
});

scottmartin
19 Oct 2012, 6:24 AM
I'm using checkboxCombo extension in ext js 3

Moving thread to Ext3 forums.

Scott