Re: DataGrid and multiple renderers
| From: | Ian Warner | Date: | Thu, 28 Sep 2006 03:00:49 +0000 |
| Subject: | Re: DataGrid and multiple renderers | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25262@lists.php.net to get a copy of this message | ||
Hi
No we give an XML 'download' the Paging is done straight from a DataObject DB bind.
"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:
You have it paging working with the XML renderer? The XML renderer doesn't have the getPaging() method... How are you getting it to work? thnx, Chris ----- Original Message ----- From: "Ian Warner" <iwarner@triangle-solutions.com> To: "Chris Boget" <chris.boget@wild.net> Cc: "PEAR General" <pear-general@lists.php.net> Sent: Tuesday, September 26, 2006 10:09 PM Subject: Re: [PEAR] DataGrid and multiple renderersHi 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