How to render array as comma-space separated
How to render array as comma-space separated
First off, I'm using Datatables 1.8.0 and upgrading to 1.10 is currently not an option.
I'm using server-side rendering of my data table and one column is an array which is currently being rendered as a comma-separated list. Until now, this was perfect. However, now, I need it to be comma+space-separated so that the browser will word-wrap the information.
I'm currently using "mDataProp" to specify the data property. I know I can use "fnRender", but I'm wondering if there's a shortcut to achieve my goal.
Thank you for any guidance.
...Matt
Answers
Hi @mwhouser ,
Yep,
columns.render
is the best place to do it. Another option would bexhr
, where you can modify the data in the Ajax response before it gets loaded.Cheers,
Colin