can't custom datatable(button,dom,etc)

can't custom datatable(button,dom,etc)

fitra36fitra36 Posts: 1Questions: 1Answers: 0

when add button in my datatable it has error "DataTables warning: table id=datatable - Cannot reinitialise DataTable. "
code :
$('#datatable').DataTable( { dom: 'Bfrtip', buttons: [ 'copyFlash', 'csvFlash', 'excelFlash', 'pdfFlash' ] } ).ajax.reload();

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @fitra36 ,

    This tech note here should help, it's discussing the issue,

    Cheers,

    Colin

This discussion has been closed.