hide datatable columns using datatable predifine function
$(document).ready(function() { $('#example').DataTable( { "columnDefs": [ { "targets": [ 2 ], "visible": false, "searchable": false }, { "targets": [ 3 ], "visible": false } ] } ); } );
hide datatable columns using datatable predifine function
$(document).ready(function() { $('#example').DataTable( { "columnDefs": [ { "targets": [ 2 ], "visible": false, "searchable": false }, { "targets": [ 3 ], "visible": false } ] } ); } );
datatables dynamically hide columns
const table = $('#example').DataTable(); // Get the column API object const column = table.column( 2 ); // gets 2nd column (0-indexed) // Toggle the visibility column.visible( ! column.visible() ); // true or false
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us