column formatting query

column formatting query

Mikeyk255Mikeyk255 Posts: 1Questions: 0Answers: 0
edited February 2012 in General
Hi there, thx for this plugin it is simply awesome,

First off, very sorry for my js noobdom :) I am trying to format numbers from specific columns (for example 1000000 > 1,000,000), ive spent quite some time reading previous articles on this and searching around but as of yet to no avail. I did consider formatting the data externally but this causes all kinds of sorting issues.

So from previous articles im lead to believe i should be using aoColumns > fnrender in my initialisation, does someone have a working example of this i can look at? (with the functions listed also plz)

My Init ;

$(document).ready(function() {
$('#assets').dataTable( {
"bProcessing": true,
"bServerSide": true,
"aoColumns": [{ "fnRender": ........ }] <-here i am stuck
"sAjaxSource": "processing.php"
This discussion has been closed.