Rendering multiple columns differently when using server-side processing
Rendering multiple columns differently when using server-side processing
I just starting to get to grips with this brilliant tool.
I'm using server-side processing to display around 3,000 records from MySQL using the server-side PHP script supplied. So far, so good -- it's working as expected.
I now need to add some column rendering to multiple columns: add links, images and checkboxes.
I've managed to render an ID column as a link -- but that leads to my questions...
1. What's the best method to specify different rendering for different columns.
2. Once a column has been rendered -- referring to that data again returns the rendered column, not the original data. I need to use the ID again in other columns -- how can I do this.
Hope this makes sense and that somebody can help.
Thanks
Mat
I'm using server-side processing to display around 3,000 records from MySQL using the server-side PHP script supplied. So far, so good -- it's working as expected.
I now need to add some column rendering to multiple columns: add links, images and checkboxes.
I've managed to render an ID column as a link -- but that leads to my questions...
1. What's the best method to specify different rendering for different columns.
2. Once a column has been rendered -- referring to that data again returns the rendered column, not the original data. I need to use the ID again in other columns -- how can I do this.
Hope this makes sense and that somebody can help.
Thanks
Mat
This discussion has been closed.
Replies
http://www.datatables.net/forums/discussion/183/fnrender-overwrites-the-original-value