table editor & datatable ajax


Topic: table editor & datatable ajax

zhangatjlu pro asked 2 years ago

About table editor:
would you like to give an example that table editor works with datatable ajax and columnsDefs: {targets:[0], visible: false}

Expected behavior
Editor with modal can add/edit one row and invisible column not showed in modal.

Actual behavior

Resources (screenshots, code snippets etc.)
$('#dtBasicExample').DataTable({
ajax:url,
columns:[
{"data":"year"},
{"data":"name"},],
columnDefs:
[{targets:[0],visible:false}],
});


Piotr Glejzer staff commented 2 years ago

do you have some console errors about that problem?


Please insert min. 20 characters.