Unwanted Search
#2941
Replies: 1 comment
-
By default, the package will search all the columns defined in your javascript. If you want to disable search for a particular column, you can do something like: columns: [
{data: 'tracking_code', searchable: false, orderable: true},
...
] If you want more strict control, you can do it on the PHP side via blacklist. return DataTables::collection($orders)->skipPaging()
->blacklist(['tracking_code'])
->setTotalRecords($orderCount)
->setFilteredRecords($orderCount)
->toJson(); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello guys!
Why does laravel datatables does unwanted search when I type something in search box?
I process search in server side:
I have commented out the searching part but it still searches by tracking_code. That's wired I think!!
Beta Was this translation helpful? Give feedback.
All reactions