Skip to main content

Questions tagged [datatables]

DataTables is a plug-in for the jQuery JavaScript library. It is a highly flexible tool, based upon the foundations of progressive enhancement, which will add advanced interaction controls to any HTML table. Do not use this together with [datatable].

0 votes
0 answers
8 views

Datatables causes table element to disappear, only when deployed

I have a Django web app which I'm hosting on Heroku, and I'm using the Datatables JQuery library to add extra features to a table. When I run my app locally, it works beautifully. When I deploy on ...
6 votes
4 answers
6k views

How to use DataTables with Laravel Vite?

I'm having trouble adding DataTables to my new Laravel 9.21 instance. But I'm getting an error in the console. What am I missing? Uncaught TypeError: $(...).DataTable is not a function bootstrap.js ...
6 votes
4 answers
34k views

DataTable JQuery How to remove a row from a table based on an ID?

I have a web application where you can drag and drop pictures into boxes. If you drop it in the one it will add the picture's information to the datatable, if you drop in the left it will remove the ...
0 votes
1 answer
32 views

django-rest-framework-datatables server side FieldError: Cannot resolve keyword '0' into field

I have followed the docs from here: https://django-rest-framework-datatables.readthedocs.io/ I am getting this error: django.core.exceptions.FieldError: Cannot resolve keyword '0' into field. Choices ...
-1 votes
0 answers
33 views

DataTable Search

Please help me for searching. If the search result pertains to employee information, what can I do to display the branch information they belong to on the first row of the table and the employee ...
0 votes
2 answers
67 views

Angular 17 with Angular-Datatables: Unable to Re-render DataTable

I'm working on an Angular 17 application using Angular-Datatables, and I'm having trouble re-rendering the DataTable when updating the data after a search. Below is the relevant code for my component: ...
0 votes
1 answer
32 views

Datatables 2.0 - Set a table with custom layout using default controls

Before 2.0 I could display three of the default controllers -buttons, search, and page length using the dom option: $('#data-table').DataTable({ dom: "<'row'<'col'l><'col' B>&...
0 votes
0 answers
9 views

Datatables - Dynamic data-order by columns.render

I'm trying to use "createdCell" to sort the column, I want to create a dynamic "data-order" attribute... I have this HTML: <table id="datatable_promotions" class="...
0 votes
0 answers
9 views

Datatable.Net rowgrouping include row columns in header

I have used the below javascript to convert my table as a datatable: var table = $('#test').DataTable({ pageLength: 60, paging: false, searching: false, bDestroy: true, //...
0 votes
0 answers
16 views

Specifying options for the DataTables component for Vue 3

I've not used DataTables with Vue3 and I cannot figure out how to specify options like paging and scroll. I do understand how to specify option if I was creating a NEW DataTable in Javascript, but I ...
19 votes
5 answers
57k views

DataTables - Not working when added colspan for the last column

I've a problem using DataTables. When i add colspan for the last column, the datatable plugin wont get applied to the table. If i remove the colspan for the last one and put it to any other column, it ...
81 votes
14 answers
249k views

jquery datatables hide column

Is there a way with the jquery datatables plugin to hide (and show) a table column? I figured out how to reload the table data: using fnClearTable and fnAddData. But my issue is that in one of my ...
0 votes
0 answers
32 views

Search Functionality in Laravel With PostgreSQL

I have been Working on search functionality in Laravel first of all this is my ajax request that I am sending to my controller with search input $.ajax({ url: '{{ route(&...
0 votes
0 answers
34 views

angular 18 cli data grid plugin error NG0203: inject() must be called from an injection context

I'm having issues with a number of Angular data grid plugins... I've tried Angular DataTables, PrimeNG, Ngx-Datatable, Ag-Grid, Mat-Table and Kendo UI... Every package after setup I get the following ...
0 votes
0 answers
11 views

Problem with Duplicate Change Events in DataTables After Copying a Record

`Problem: We have built a feature in DataTables that allows users to copy an existing record. This feature lets users edit only the required fields (approximately 20+ fields) assuming that the ...

15 30 50 per page
1
2 3 4 5
1385