Hi, I want that no appear the editor when the value of a cell is "X", par example.
I try this:
In a render function of a cell I make the following:
function myRenderCell(val,metaData,rec){
if (rec.get('DPP_MAESTRO_DET') == "X"){
return '';
}
}
function escNoEdit(c){
if (vTipoGrid == "D"){
var vGrid = Ext.getCmp('GridDPP');
vGrid.stopEditing(true);
}
}
The first click over the cell don't works, the combobox appear, but in the second click the combobox not appear. Why?
First click:
Img2.jpg
Second click:
Img3.jpg
Code example:
Code:
var DPP_BASE = new Ext.ux.Column({
id: 'DPP_BASE',
header: 'Base %',
dataIndex: 'DPP_BASE',
sortable: false,
menuDisabled: true,
width: 20,
align: 'right',
editor: {xtype:'combo',store:st_lvBase, displayField:'valBas',valueField: 'codBas',mode: 'local',typeAhead: false,triggerAction: 'all',lazyRender: true, listeners:{beforeshow : function(c){escNoEdit(c);}}},
renderer: myRenderCell
});
[SOLVED]