Laravel-datatables: Requested unknown parameter 'DT_Row_Index' for row 0, column 1

Created on 27 Dec 2018  路  4Comments  路  Source: yajra/laravel-datatables

Summary of problem or feature request

Requested unknown parameter 'DT_Row_Index' for row 0, column 1

Code snippet of problem

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!

question

Most helpful comment

@phoenixrever use {data: 'DT_RowIndex', orderable: false, searchable: false}.

All 4 comments

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_Index was renamed to DT_RowIndex to follow the naming convention of DataTables. @JinalSomaiya answer should fix this.

Thanks, it works

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahmadbadpey picture ahmadbadpey  路  3Comments

vipin733 picture vipin733  路  3Comments

techguydev picture techguydev  路  3Comments

sangnguyenplus picture sangnguyenplus  路  3Comments

SGarridoDev picture SGarridoDev  路  3Comments