PDA

View Full Version : How to hide some checkbox in the checkbox column



hieu79vn
25 Oct 2012, 12:39 AM
Hello,

I have a checkcolumn and I would like to hide some checkbox in some rows. could you tell me how to do that?

Thank you
My code:

columns: [
{
xtype: 'checkcolumn',
dataIndex: 'is_checked',
width: 30,
renderer: function(value, metaData, record, rowIndex, colIndex, store) {
if (record.data.status_code == 'val' )
return ''; --hide the check box
return .....'I dont know what should be return here';
}
},

mitchellsimoens
27 Oct 2012, 1:19 AM
Return this:


return Ext.ux.CheckColumn.prototype.renderer.apply(this, arguments);

hieu79vn
29 Oct 2012, 12:36 AM
I runs well ;)

Thank you