Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82616

data[0] (hidden column) returns expected data[1] value

$
0
0

Good morning

I build a table dynamically, as with my example at https://jsfiddle.net/WernerCloete/m23akdjb/103/.

When I remove the row, after updating the database with the new data, data[0] returns the data[1] value, not the expected ID value (the example does not have this problem).

I have no idea why this would happen. If I don't convert the table, using

    $("table#test").DataTable(
    {
      "bAutoWidth": false,
      "columnDefs":
      [
        {
          "targets": [ 0 ],
          "visible": false,
          "searchable": false
        }
      ],
      "lengthMenu": [ 5, 10, 25, 50, 75, 100 ],
      "order": [[ 1, "asc" ]],
      "select":
      {
        "style": "single"
      }
    });

the table shows that the ID column and row values are present.


Viewing all articles
Browse latest Browse all 82616

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>