Requested unknown parameter 'DT_Row_Index' for row 0, column 1
in laravel controller:
return Datatables::of($users)
->addIndexColumn()
.....
->make(true);
in js:
{data: 'DT_Row_Index',name: 'DT_Row_Index', orderable: false, searchable: false},
this worked before. don't konw how to fix it!
I updated laravel to 5.7.19 a few days ago maybe this cause the proplem ?
@phoenixrever use {data: 'DT_RowIndex', orderable: false, searchable: false}.
@phoenixrever DT_Row_Index was renamed to DT_RowIndex to follow the naming convention of DataTables. @JinalSomaiya answer should fix this.
@phoenixrever
DT_Row_Indexwas renamed toDT_RowIndexto follow the naming convention of DataTables. @JinalSomaiya answer should fix this.
Thanks, it works
Most helpful comment
@phoenixrever use
{data: 'DT_RowIndex', orderable: false, searchable: false}.