ZFDataGrid table width
Posted
by emeraldjava
on Stack Overflow
See other posts from Stack Overflow
or by emeraldjava
Published on 2010-04-29T15:12:20Z
Indexed on
2010/05/18
18:10 UTC
Read the original article
Hit count: 556
zfdatagrid
|zend-framework
I'm using zfdatagrid to display a table within a Zend app. How do i fix the width of the table? I can't find any setting in the grid.ini.
public function displaytemptableAction()
{
$config = new Zend_Config_Ini(APPLICATION_PATH.'/grids/grid.ini', 'production');
$db = Zend_Registry::get("db");
$grid = Bvb_Grid::factory('Table',$config,$id='');
$grid->setSource(new Bvb_Grid_Source_Zend_Table(new Model_DbTable_TmpTeamRaceResult()));
//CRUD Configuration
$form = new Bvb_Grid_Form();
$form->setAdd(false)->setEdit(true)->setDelete(true);
$grid->setForm($form);
$grid->setPagination(0);
$grid->setExport(array('xml','pdf'));
$this->view->grid = $grid->deploy();
}
© Stack Overflow or respective owner