Re: DataGrid and multiple renderers

From: Date: Wed, 27 Sep 2006 02:09:31 +0000
Subject: Re: DataGrid and multiple renderers
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25248@lists.php.net to get a copy of this message
Hi This is a basic tutorial http://www.samalyse.com/code/pear/dgdo/ but simply you bind the resource to whatever renderer you want. On my site I have it displaying a table - with paging - sorting - filtering - and downloads available for XML, CSV, Excel and PDF using an AJAX CRUD method so its all possible. Regards Ian Warner Director Triangle Solutions Ltd Chris Boget wrote:
Is there a way to use multiple renderers with DataGrid. The renderers I'm particulary interested in is the XML and Pager. I can do the paging manually, but the only way I can think of would be a roundabout way using both DataObject->find() to get the subset I want and then another query to get the total number of records. Seems pretty inefficient to me. Since Pager already has the functionality I'm looking for, I thought I might be able to utilize it, too. So if it's possible to use both renderers, could someone point me to a resource online that discusses how? I've done some google searches but didn't come up with anything definitive one way or the other. thnx, Chris


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