Hi folks,
I have a problem and i cant get to make it work... I need to catch the "beforeedit" event in my code. The current code is:
shopCC.grid.orderInner = function(config) {
config = config || {};
Ext.applyIf(config,{
id: 'shopcc-grid-order-inner'
,url: shopCC.config.connectorUrl
,baseParams: { action: 'orders/getgridinner', querytype: 'getGrid', query: shopCC.config.sid }
,fields: ['sid','line','blago','aid','kolicina','cena']
,columns: [{
header: _('shopCC.order.line')
,dataIndex: 'line'
,align: 'center'
,sortable: true
,width: 100
},{
header: _('shopCC.order.aid')
,dataIndex: 'aid'
,align: 'center'
,sortable: false
,width: 100
},{
header: _('shopCC.order.blago')
,dataIndex: 'blago'
,sortable:false
,width: 180
,editor: {
xtype: 'textfield'
,renderer: true
,listeners: {
'beforeedit': {fn:function(e,r,t,m){
alert("workin");
},scope:this}
}
}
}]
});
shopCC.grid.orderInner.superclass.constructor.call(this,config);
};
Ext.extend(shopCC.grid.orderInner,MODx.grid.Grid,{});
The "beforeedit" event isnt firing or i'm not catching it correctly....Any ideas?
Sumoborac