cancel
Showing results for 
Search instead for 
Did you mean: 

Disable checkbox column editing

Disable checkbox column editing

Hi,

I'm making custom admin extension, where I have the grid, where one column is checkbox column.

 

$this->addColumn('is_holiday', array(
      		'header'    => Mage::helper('plan')->__('Holiday'),
      		'align'     =>'center',
      		'width'     => '120px',
      		'index'     => 'is_holiday',
      		'type'      => 'checkbox',
      		'values'      => array(1),
      		'disabled' => true,
      		'readonly' => true,
));

 It is rendered ok, but it is editable - user can change the value. I'd like to disable this functionality.

How can I do that?

Best regards,

Bojan

1 REPLY 1

Re: Disable checkbox column editing

Hi @bkraut,



Have you seen any checkbox in the admin panel with a un-editable checkbox?
That will be the first point as reference.

Welcome to the Magento Forums. Remember to introduce yourself and read the Magento Forums Guidelines.