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.
yajra-datatable
381
questions
0
votes
0
answers
45
views
Show N/A for all the null columns in laravel yajra datatable?
I want to show default value like
"N/A" or dash "-" if the column value is null. Currently it displays empty column as below:
I dont want to add default value for each column ...
0
votes
0
answers
24
views
Is Client-side validation in Yajra DataTables Edit and Create modals possible?
I'm trying to create a Yajra DataTable Editor that has client-side validation. The goal is to make it validate user input while actively typing within the create and edit modals text input.
Say for ...
0
votes
1
answer
43
views
Yajra Laravel Datatables preventing one column sorting only works when sorting another column
I'm trying to create a datatable as follows but I do not want the first and last column to be printed, sortable or even used for searches but that only works when I click on the sort buttons to sort a ...
0
votes
0
answers
23
views
Export Functionality in Yajra DataTable
I am creating yajra datatable class for showing report table. I also want to add export buttons.
so i added this in html builder
public function html(): HtmlBuilder
{
return $this->...
0
votes
1
answer
44
views
set fixedHeader datatable yajra
i need add fixed headers to the table create with yajra datatables in laravel 9.28
I have other tables with parameter: ->fixedHeader(true) and when i´m scrolling down, my headers stay in top.
In my ...
0
votes
0
answers
134
views
How to update yajra datatable without refreshing page in laravel 10
I am using Yajra Laravel DataTable
I want to update the table on an AJAX response after deleting a record from the table. Using this we can manage all the things from the data table file instead of ...
0
votes
0
answers
50
views
error Datalables warning: table id -table-data - Exception Message: SQLSTATE[425221: Column not found:
I have a data table in my laravel project, I need to active orderable in sub_specialties column but this error is show
Datalables warning: table id -table-data - Exception Message:
SQLSTATE[425221: ...
0
votes
0
answers
20
views
Facing issue with default pagination in "yajra/laravel-datatables-oracle" when table is empty
I am using "yajra/laravel-datatables-oracle": "~9.0", but I am facing an issue. When there are rows in the table, the pagination works as expected. However, when the table is empty,...
1
vote
1
answer
30
views
Call query before yajra code in controller
I want to call query before yajra code begins in controller and use it in custom column of yajra code like this
//Query before code
$users = user::get();
if ($request->ajax() && $request-&...
1
vote
1
answer
73
views
Bootstrap (Vuexy template) Tooltip style won't work on html inside php file laravel
I am using laravel with Vuexy template and yajra datatable. Everything work fine until i tried adding an tooltip inside a table. The tooltip is written in a function that return HTML inside ...
0
votes
1
answer
52
views
Yajra DataTables Search Not Working for Modified Column
I'm using Yajra DataTables in Laravel and experiencing issues with the search functionality for the modefied column (HAWB). I've modified the HAWB column definition to display a clickable link, but ...
0
votes
1
answer
122
views
YajraDatatables in Livewire component
I am using YajraDatatables in the controller and it's working fine,
Below is the controller function, and it give me output in table,
class EodBhavDataController extends Controller
{
//
public ...
0
votes
0
answers
148
views
Argument '1' passed to render() is expected to be of type Yajra\\DataTables\\Services\\view-string|null, string given
I am using Laravel 10 as a backend for my project, but I always get this error:
Argument '1' passed to render() is expected to be of type Yajra\DataTables\Services\view-string|null, string given
I ...
1
vote
1
answer
468
views
Laravel Yajra DataTables default sorting with condition
i have an datatables using yajra, and i have the column named "status".
"status" columns contains
-2 : Rejected By Finance,
-1 : Rejected By Marketing,
0 : Pending,
1 : Accepted By ...
0
votes
1
answer
74
views
Datatable.js - Laravel: JSON columns are not filtered (orderable)
I use laravel and the package: yajra/laravel-datatables-oracle on a Mysql database. I also use the mcamara/laravel-localization package to manage the site's different languages.
The eloquent code ...