Questions tagged [yajra-datatable]

Use this tag for questions relating to the Yajra DataTables package, which is used to support the creation of jQuery DataTables in Laravel projects.

The Yajra DataTables package supports the creation of jQuery DataTables in Laravel projects.

Specifically, it provides support for server-side implementations of DataTables.

Additional Resources

377 questions
3
votes
0 answers

Yajra datatables inline editing

Tell me how to add inline editing to the yajra datatable? Everything else seems to work for me. Creates, edits and deletes records correctly. I tried to do as shown below but it didn't work (code "try"). That is, it is not even possible to select…
volnistii11
  • 119
  • 8
3
votes
0 answers

How to use Get and Post method in ajax for modal window in laravel

I have Datatable in which I am getting all the records from database, now I have rendered a feedback button for all the the records. On click of the Feedback button a modal popup window open with option to submit the feedback for particular id. Now…
prashant
  • 57
  • 1
  • 1
  • 15
3
votes
2 answers

Laravel Datatables: How to sort column with the second data

How do I sort according to the second data? The sorting works only on the ID. But in my table, I added a badge count and that's what I want to sort by. Here is my controller return DataTables::of($users) ->addIndexColumn() …
draw134
  • 1,053
  • 4
  • 35
  • 84
3
votes
2 answers

Laravel 7 Yajra datatable NOT responsive

I'm using Yajra datatable from a weblesson tutorial. All is working great, but the data-table is NOT responsive. I included this code : $('#user_table').DataTable({ responsive: true, Thanks to Omer : I added two CDN :
David
  • 427
  • 1
  • 5
  • 21
3
votes
1 answer

Extending Base Datatables Class For Crud Class

I am using the yajra laravel datatables package. I'm trying to figure out how I can refactor this little bit of controller code to an individual class (UsersDataTable) which I am using method injection to make accessible. This class extends the base…
3
votes
0 answers

Datatables can showing data/result but sometimes(often) get error 404 if load or search data

I have a table and showing data and using Datatables Yajra to get search and pagination . This datatables is work ,showing data , all function is OK . But if i reload this page,search some words , is often to showing error : DataTables warning:…
Adhik Mulat
  • 538
  • 2
  • 10
  • 39
3
votes
3 answers

Use of undefined constant OCI_CRED_EXT - assumed 'OCI_CRED_EXT' laravel

I'm trying to connect oracle database to my laravel application using this package: https://github.com/yajra/laravel-oci8 but having error with the external connection, this is the error: Here the line of error in package:…
3
votes
0 answers

how to fix " Uncaught TypeError: b.inst.processing is not a function " error in laravel yajra datatable?

when the download button for CSV, PDF etc is clicked it doesn't work only print button works, the other button gives the following error " Uncaught TypeError: b.inst.processing is not a function ". here is some part of my code $(function() { …
Akil Patel
  • 145
  • 2
  • 13
3
votes
1 answer

DT_Row_Index not found in Yajra Datatable

I am using Yajra Datatables, this is my php code $quotes=User::find($id)->quotes(); return Datatables::of($quotes) ->addIndexColumn() ->setRowClass(function($quote){ return…
Hamza Dhamiya
  • 1,269
  • 1
  • 10
  • 17
3
votes
1 answer

Data-tables custom filter AJAX data function not calling AJAX

I am having a issue with data-tables, I've had it working before, however the re-implementation is not working, in short I think its an ajax problem, I'll try to explain below. //packages "laravel/framework":…
BrainDead
  • 43
  • 3
  • 11
3
votes
3 answers

Yajra No available engine for App\User

I've made for my cms admins role now i have 2 admin roles super admin and normal admin i have a page that manage users both super admin and normal admin can see it but with different data here's the controller code public function index() …
Ahmed Ma MDouh
  • 107
  • 1
  • 12
3
votes
1 answer

Yajra datatable global search not working

The Yajra Datatable global search is not working. Controller Code public function getTable() { $query = Customer::query(); return Datatables::of($query) ->addColumn('name', function ($query) { return…
DOEE
  • 73
  • 2
  • 8
3
votes
1 answer

laravel yajra datatable how to display json data in datatable column

i have a member table that has 'poin' column with json data, example: {"IDR":"100", "MYR":"50", "DOLLAR":"25"} how can i display that json data in one cell table using datatable? Name | Poin | ____________________ User 1|IDR : 100 | …
Hend Ry
  • 93
  • 1
  • 10
3
votes
3 answers

Laravel datatable sort not working how to use on join

I am using Laravel Datatable, Sorting is not working, Can someone help me. controller Table::select(array( DB::raw('table2.con_title'), DB::raw('........ Datatables::of(----)->make(); View .dataTable({ "bProcessing": true, …
fernandus
  • 538
  • 1
  • 6
  • 24
2
votes
1 answer

Undefined type 'Yajra\Oci8\PDO' in laravel 10.17.1 with latest Yajra composer

Undefined type 'Yajra\Oci8\PDO' in laravel 10.17.1 with latest Yajra composer "message": "Class \"Yajra\\Oci8\\PDO\" not found", "exception": "Error", "file":…
Nalawala Murtuza
  • 4,605
  • 1
  • 12
  • 21
1
2
3
25 26