Re: DataGrid and multiple renderers
| From: | Ian Warner | Date: | Thu, 28 Sep 2006 16:38:00 +0000 |
| Subject: | Re: DataGrid and multiple renderers | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25284@lists.php.net to get a copy of this message | ||
Chris Boget wrote:
The way Datagrid is meant to work is you take the DB data then if you want to output send it to render and then style with CSS. You can then add all the filtering, sorting options in a manner that is well documented. If this is a user front end site then it just seems all wrong to me if you have other plans for the XML then you know it is easy to render that for that occasion but for user guis do it as simple as possible, you will also have saved a lot of time trying to get the pager working if this has been done in the logical method. Anyway dont want to rain on your parade - if you feel comfortable doing it like this and you have other plans then dont let me stop you, so good luck with that.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 XSLTYes, that's exactly it.This seems an overhead in terms of the treatment of this data.Perhaps. But I ultimately have a dual use for the data in that format.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.Elaborate, please? Well you are taking the 'optimised' data from the database - converting it into XML then rendering with an XSLT that basically has HTML table data in it. That also has Style not compatable with XHTML 1.1 <table border="0" width="100%">, I assume you may then add a CSS stylesheet to style this correcly?
Can we see some examples of what you have done so far on the web I am very curious :)Here is a concept/test script that I'm working with. It's a script I use to test various pieces of functionality before I put it all together: http://dev.communal-haven.com:8082/Test/test_grid.php thnx, Chris