its shown error id=show-absen - cannot reinitialise
its shown error id=show-absen - cannot reinitialise
ridhopratama
Posts: 3Questions: 2Answers: 0
this is my code
$('#show-absen').DataTable({
data : (data), //from JSON.parse()
columns: [{ "data": "id_a" },{ "data": "nama_k" },{ "data": "keterangan_s" },{ "data": "detail" },{ "data": "tanggal" },{ "data": "jam" },{"data":"acc"},{ "data": "denda" , render:$.fn.dataTable.render.number( ',', '.', 2, 'Rp.' )}],paging : false});
"denda" is amount of money should to be pay, closely like tax. and "Rp" is indonesian money currency
This question has accepted answers - jump to:
This discussion has been closed.
Answers
help please
Take a look at this plugin http://www.decorplanit.com/plugin/
I use it in my rendering because it gives me complete control of exactly how my numeric numbers should appear without actually touch the data object.
If you are getting the reinitialise error, then the error message means what it says - you cannot re-initialise the DataTable. See this tech note for full details.
If you are still having problems with it after reading that document, please link to a test case showing the issue so we can offer some help.
@bindrid - That's a nice looking plug-in!
Allan