Category : datatables-1.10

I’ve a datatable which generated by server-side. Click event working fine for that. code I’ve used $(‘#firstLevelTable’).on( ‘click’, ‘tr td:first-child’, function () { }) When we click refresh, I’ve empty the tbody of #firstLevelTable and appending the <TR><TD>.It is appending rows and working as expected. but the problem is click event not working properly, it ..

Read more

I want to render a table after executing ajax. Here, I am using jQuery var tableOfSomething = $(‘#some_id’).DataTable({ "paging": true, "lengthChange": true, "searching": true, "ordering": true, "info": true, "autoWidth": true, "responsive": true, }); $.ajax({ method: "POST", url: "someurl.com/getAll" data: {} }) .done(function(msg){ var res = JSON.parse(msg); for(var i = 0; i < res.length; i++){ $.ajax({ ..

Read more

I’m working with DataTable v1.10. I have added a hidden date field in 1 column to sort it properly. I don’t want that hidden data in exported file but it’s showing in the exported excel/pdf document. here is my code. HTML Code <table id="invoices-table" class="table table-sm table-responsive-md w-100 text-nowrap"> <thead> <tr> <th>Invoice Number</th> <th>Invoice Type</th> ..

Read more