bInfo (iTotalRecords and iTotalDisplayRecords): is formatting the numbers possible?

bInfo (iTotalRecords and iTotalDisplayRecords): is formatting the numbers possible?

MithrusMithrus Posts: 19Questions: 0Answers: 0
edited February 2010 in General
Is there a clean way to format the iTotalRecords and iTotalDisplayRecords values to show thousand separators?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Hi Mithrus,

    No - there currently isn't a way of doing this. DataTables will just output the number that is seen. I'll have a look at including an option for this in future releases, but until then, if you want to have a hack at the code the relevant function is _fnUpdateInfo. Or you could use fnDrawCallback to alter the display text.

    Regards,
    Allan
This discussion has been closed.