php - Magento grid column position -



php - Magento grid column position -

i'm editing order grid adding custom columns this

$this->addcolumn('pagamenti', array( 'header' => 'paymentsource', 'width'=>'50px', 'align' =>'left', 'type' => 'text', 'renderer' => 'blablabla_adminhtml_block_sales_order_renderer_lol' ));

but every column positioned on far right of table, no matter phone call addcolumns.

is there way forcefulness position?

thanks

you can utilize addcolumnafter function.

$this->addcolumnafter('pagamenti', array( 'header' => 'paymentsource', 'width'=>'50px', 'align' =>'left', 'type' => 'text', 'renderer' => 'blablabla_adminhtml_block_sales_order_renderer_lol' ), 'id_of_column_to_be_after');

php magento

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -