Column control Values are not updating

Column control Values are not updating

HamzaAhmad0305HamzaAhmad0305 Posts: 3Questions: 1Answers: 0
edited February 2022 in TableTools


I have a dynamic datatable in which input controls are creating from ajax call. And this table have more than 10 rows. All the input controls are editable. The data load from ajax call and user can further modify this data. But the problem is i want to send this data to server in json form and when i use
it returns me ajax data that i have load earlier but i want modified data.

i'm using below code to update td,tr but this seem's not to be working condition.

$('#tblCommissionDetails').on('change', 'input', function () {     
        var tdCell = $(this).closest('td');     
        //update the value
        $(this).attr('value', this.value);       
        var idx = $('#tblCommissionDetails').DataTable().cell(tdCell).index().row;
        var data = $('#tblCommissionDetails').DataTable().cells(idx).invalidate().draw(false);*/

Any suggestions will be appreciated.


Edited by Kevin: Syntax highlighting. Details on how to highlight code using markdown can be found in this guide

This question has an accepted answers - jump to answer


Sign In or Register to comment.