Re: Some more questions about Structures_DataGrid

From: Date: Tue, 30 May 2006 18:37:50 +0000
Subject: Re: Some more questions about Structures_DataGrid
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24203@lists.php.net to get a copy of this message
On 5/30/06, Jose Manuel Zea <jmzeag@yahoo.es> wrote:
Hi folks! Here again with some more questions. 1. I don´t want to show the value of the primary key in the table, but I need this value in the formatter of some of the columns, for example for the edit and delete links. I cannot access to this value if I don´t show it, but this is not relevant data for the user, it must be hide. Is there a way to access to this value?
A quick workaround would be to add a style to the PK column to make the cells display: none.
2. I could transform the Pager options ($renderer->getPaging) to work in an ajax way, the problem now is with the links in the header of the columns. Is there a way to get a javascript call in these headers instead of a link?
Yes, just put it in the header text and don't give a column for the "sorting column" parameter. I actually use some code to use JS sorting when all of the records are on on page using this method.
3. Is there a way to establish as formatter an object function instead of just a function?
I believe there was a checkin yesterday that allows some more options for the formatter. However, it has always supported "static" calls as in: http://pear.reversefold.com/horde/chora/co.php?r=1.2&f=DB_DataObject_FormBuilder_Frontend%2FFrontend%2FLimitColumn.php#16
Thank you very much, for all your help. Regards, Jose Manuel Zea ______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- Justin Patrin

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