madcorp / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

It's not possible change position of Extra Column #832

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It's not possible change position of Extra Column with method 
$grid->updateColumn('extra', array('position' => '1'));
I need put Extra Column before Edit Column.

Have any Way?

Zend Framework version: 1.11
ZFDatgrid Version (Bvb_Grid::getVersion()): 0.8
Operating system: Windows 2003
PHP Version: 5.3
Database Server and version: MySQL
Source Adatapter: PDO_MySQL

Original issue reported on code.google.com by cristian...@bol.com.br on 2 Mar 2012 at 7:01

GoogleCodeExporter commented 9 years ago
Hi,

It's possible to make what you want, however you need extra work.

First, disable CRUD columns:
$form->setEditColumn(false);
$form->setDeleteColumn(false);
$form->setAddButton(false);

Now you have more than one possibility, using the following tags:
{{addUrl}}  
{{editUrl}}  
{{deleteUrl}}

- create extra column for each crud link and one more for your "extra" column
- create two extra columns (one for your "extra" column and another with the 3 
links)
- simple one extra column
- (...)

Best Regards
Ivo Monteiro

Original comment by ivomonte...@gmail.com on 4 Mar 2012 at 4:19