New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown column 'DT_Row_Index' in 'order clause' #1846
Comments
It's added column and not part of the DB that's why it's not sortable. To fix, do:
|
@yajra Thanks a lot yajra, is that impossible to sort that coloumn ? |
Yes, I think it's impossible because index column is not part of the database / query. My usual guide is if it's doable on SQL level, the package should be able to handle it. Otherwise, it's not possible. |
@yajra : ok I get it, btw thanks again for this great package, how about adding notes for this one : in : https://yajrabox.com/docs/laravel-datatables/master/index-column |
Oh thanks, will add that when I got the chance. You can also PR if you can at https://github.com/yajra/laravel-datatables-docs/blob/master/index-column.md. Thanks! |
{ data: 'DT_RowIndex', name: 'DT_RowIndex' , orderable: false, searchable: false} |
it's work for me thanks |
Summary of problem or feature request
i add
->addIndexColumn()
in Controller,
in view I add
{ data: 'DT_Row_Index', name: 'DT_Row_Index' }
This error always appear :
Unknown column 'DT_Row_Index' in 'order clause'
The text was updated successfully, but these errors were encountered: