Changing Columns Dynamically With Angular-datatables
I am using angular datatables, an angularized version of the popular jquery datatables library. Here is my html
Solution 1:
Faced the same issue in my project.
vm.table.dtInstance.DataTable.destroy();
angular.element('#table-id').children('thead').children().remove();
angular.element('#table-id').children('tbody').children().remove();
vm.table.dtColumns = columnsList;
Helped for me. It deletes whole datatable and creates it from scratch when you set new columns list.
Post a Comment for "Changing Columns Dynamically With Angular-datatables"