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,142Questions: 1Answers: 2,586

    Hi @fitra36 ,

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

    Cheers,

    Colin

This discussion has been closed.