Re: Datagrid - addcolumn()

From: Date: Tue, 23 May 2006 17:04:12 +0000
Subject: Re: Datagrid - addcolumn()
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24131@lists.php.net to get a copy of this message
Dear Mark, Mark Wiesemann schrieb: > You need to use a 'formatter'. Please refer to this example: > > http://pear.php.net/manual/en/package.structures.structures-datagrid.example-advanced.php > > In the formatter function you can do a print_r($params) to get an idea > of what $params contains. Of course, the value you need, is in there. Okay - that was quite straightforward, but there are still 2 problems left. 1) I need $record['id'], but as i am not displaying it ($datagridOptions["fields"] = array ("column1", "column2", "column3");) i cant access it. how may i access a column which isn't displayed? 2) How may i control where adcolumn() adds the column? i want it as the last column, but it is always appended as the first. Greetings, Toppi

« previous php.pear.general (#24131) next »