Friday, 25 April 2014

Extjs-on blur change event for complete cursor

Ext.getCmp('someGridName').editingPlugin.completeEdit();


Example-

                                            xtype: 'button',
                                   maxHeight: 23,
                                   style: 'margin-left:650px;',
                                   iconCls: 'saveicon',
                                   text: 'Ok',
                                   listeners:{
                                    click: function(){
                                    Ext.getCmp('Grid').editingPlugin.completeEdit();
                                                         }
                                                       }

Monday, 14 April 2014

Extjs-set width and height of combo box

                        xtype: 'combobox',
                        fieldLabel: 'User',
                        labelAlign: 'right',
                        name:'client',
                        displayField:'name',
                        valueField:'id',
                        listConfig:{              // set popup- width and height of combo 
                                                                        width:300,
                                                                         height:200,
                                                                         autoHeight:true
                                                        },
                                                      matchFieldWidth :false, //mandatory
                        store:Ext.create('MyApp.store.ClientStore'),