Re: DataGrid and multiple renderers

From: Date: Thu, 28 Sep 2006 10:40:57 +0000
Subject: Re: DataGrid and multiple renderers
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-25266@lists.php.net to get a copy of this message
Chris, the getPaging() method in the HTMLTable renderer is deprecated. Please use something like: $dg =& new ...; ... $dg->bind(...); ... $dg->render(DATAGRID_RENDER_XML); $dg->render(DATAGRID_RENDER_PAGER); in your code. The same holds for setRenderer(), fill() or getOutput().
When I did that, the only thing that happened was that it outputted my dataset data a second time in html format. Here is what it looked like: <xmlroot> <xmlitems>...dataset data...</xmlitems> </xmlroot> ...Paging HTML... <table> <thead> <tr><td>...column sorting html...</td></tr> </thead> <tbody> <tr><td>dataset data</td></tr> </tbody> </table> Am I missing something? The reason I was using getPaging() was because all I wanted was the ...Paging HTML..., not the entire dataset rendered again (in HTML). It's looking more and more like I'm going to have to do my own paging if I want the output in XML only. :| thnx, Chris

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