Re: DataGrid and multiple renderers
| From: | Ian Warner | Date: | Thu, 28 Sep 2006 13:19:25 +0000 |
| Subject: | Re: DataGrid and multiple renderers | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25276@lists.php.net to get a copy of this message | ||
Chris
I am sure that what you are doing is what we say in the UK 'arse about face' I now understand you want to render the DB table into XML to make use of your XSLT
This seems an overhead in terms of the treatment of this data.
I think taking the data from the DB and then render, add paging and style using a CSS would be far more conventional and optimised.
Can we see some examples of what you have done so far on the web I am very curious :)
Good luck anyway.
Regards
Ian Warner
Director
Triangle Solutions Ltd
Chris Boget wrote:
Ah, now we're getting closer what your real problem is. As described in our discussion a few days ago, the HTML tags need to be translated into entities to get valid XML. If you don't like this, you could just overload the XML renderer and change line 176 so that it does not convert the data into entities.I understand what it's doing, the rational behind why it's doing it and accept that it needs to be done. I do not plan on overloading the renderer. I just realized, a little belatedly, the futility of using the paging renderer instead of doing it myself.I'm not really sure yet, what you're really trying to do and what you expect, but maybe you want to use getOutput() instead of render() to avoid direct rendering and being able to do with the XML or paging string what you want.Yes, that is it exactly. I want to do a little bit of manipulation prior to sending it out to the browser with reference to an XSLT, among other things. thnx, Chris