I created my custom grid in an extension but I don't know if it is something with permission or not that a button is not showing up in grid customization:

it should have add attribute column like this:

controller:
class Lenmar_Lightbulbs_Adminhtml_LightbulbsController extends Mage_Adminhtml_Controller_action
{
protected function _isAllowed()
{
return Mage::getSingleton('admin/session')->isAllowed('lightbulbs/lightbulbs');
}
public function indexAction() {
$this->loadLayout();
$this->getLayout()->createBlock('lightbulbs/adminhtml_lightbulbs');
$this->renderLayout();
}
public function gridAction()
{
$this->getResponse()->setBody(
$this->getLayout()->createBlock('lightbulbs/adminhtml_lightbulbs_grid')->toHtml()
);
}
}
my cache is disabed and I reindexed it didn't help even I copy pasted my other extension which has this button and again rename everything it didn't work
I have the buttons comming from T:\app\code\community\BL\CustomGrid\Block\Widget\Grid\Columns\Config.php
here is the function:
public function getAddColumnButtonHtml()
{
return parent::getButtonHtml($this->__('Add Attribute Column'), $this->getJsObjectName().'.addColumn();', 'scalable add');
}
also I can rename other ones and they will be changed in button text
also I found the condition! that when to show it:
<?php if ($this->canDisplayColumnsConfig()): ?>
<?php if ($_gridModel->canHaveAttributeColumns()): ?>
<span class="field-row">
<?php echo $this->getAddColumnButtonHtml() ?>
</span>
<?php endif ?>
I commented out this if condition and add attribute column showed up but I cannot do it it would affect other areas where add column shouldn't be there it seems I have some permission problem which I dont know how to figure out for this extension