Results 1 to 3 of 3

Thread: Urgent Help : Ext.isDefined is not a function

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    18

    Default Urgent Help : Ext.isDefined is not a function

    I'm using checkboxCombo extension in ext js 3 for multiselection .
    I'm getting the following error : Ext.isDefined is not a function

    Code:
     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

  2. #2
    Sencha User
    Join Date
    Oct 2012
    Posts
    18

    Default

    Quote Originally Posted by rxbass View Post
    I'm using checkboxCombo extension in ext js 3 for multiselection .
    I'm getting the following error : Ext.isDefined is not a function

    Code:
     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

    Code:
    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);
                            }
                        }
                });

  3. #3
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,410

    Default

    I'm using checkboxCombo extension in ext js 3
    Moving thread to Ext3 forums.

    Scott

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •