1

So I have a product grid, a non-mass-action one. Because I wanted to have like in the mass-action, those checkboxes as the first columns, the representative for all value data, I added the following in my grid:

 $this->addColumn('product_ids', array(
        'type' => 'checkbox',
        'field_name' => 'product_ids[]',
        'align' => 'center',
        'index' => 'entity_id',
        'values' => array('1', '2'),
 )); 

Everything is cool, except that, because I didn't put any header name, my checkbox header looks like:

enter image description here

My question is how to remove that little checkbox, but not adding any name on the header? Thank you in advance

0

Try something like this:

$this->addColumn(
        'product_ids',
        array(
            'header' => ' ', //add this
            'type' => 'checkbox',
            'field_name' => 'product_ids[]',
            'align' => 'center',
            'index' => 'entity_id',
            'values' => array('1', '2'),
    ));

Insert the header key and put a white space inside and this should work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.