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].

datatables
1 vote
0 answers
22 views

Get all CELLS from a specific Datatable ROW

So I'm adding a row to my datatable using var newRow = myTable.row.add([ questionText, '', '', '', '', '' ]).draw(false); And I then want to get all the cells from that row ...
CoqPwner's user avatar
  • 965
0 votes
0 answers
22 views

This filter in datatables is not working for filtering more than one word

It works properly for one word categories, however if there are spaces in between it doesn't show results.I'm not quite sure how to fix it, can you please check my code and let me know what is not ...
jcdjcdjcd's user avatar
0 votes
0 answers
38 views

Uncaught ReferenceError: DataTable is not defined [DATATABLE PHP] [closed]

I have this error in my datatable, I have tried everything and without success so far, below is the error: <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset=&...
Lucas Silva's user avatar
0 votes
0 answers
20 views

How can I fixColumn and adjust the content of fixedColumn columns?

Currently I am using a 3rd party datatable library. Here is my configuration when re-rendering the mesh to start loading the input data. _columns: is the list of columns I declared earlier Code: tbl....
Thới Lê Châu's user avatar
0 votes
0 answers
19 views

Toggle b/w two jquery datatables

I am new to jquery and want to implement jquery datatables for my project. $(document).ready(function () { function destroyDataTable(table) { if ($.fn.DataTable.isDataTable(table)...
Muhammad Ahmed's user avatar
0 votes
0 answers
19 views

Server Side DataTables warning: table id=DataTables_Table_0 - Ajax error

I'm getting an error when trying to setup a datatables with my project. DataTables warning: table id=DataTables_Table_0 - Invalid JSON response. For more information about this error, please see http:/...
Bintang Satya's user avatar
0 votes
1 answer
47 views

export to excel using datatable

I want to export to excel. here is my code. $('#tabelku').dataTable({ dom: 'Bfrtip', "buttons": [{ ...
user1004's user avatar
-1 votes
1 answer
57 views

Remove all rows of table using jQuery

I have a javascript function that insert new rows in Table using jquery. This is the code: $.each(data,function(i,item){ $('#tb-articoli').dataTable().fnAddData( [ ...
bircastri's user avatar
  • 2,083
0 votes
1 answer
14 views

Subtract date from database with current date in datatables

I have a date stored in database in YYYY-MM-DD format. I want to subtract the date with current date to calculate difference in years. My code looks like this: <table id="my_table"> &...
Untamable Beast's user avatar
0 votes
0 answers
27 views

Connecting PyCharm to Apache Spark Docker Containers Running on Windows Host via WSL

I have Apache Spark set up in Docker containers running on my Windows host machine using WSL (Windows Subsystem for Linux) environment. I would like to connect PyCharm, which is running directly on ...
Parbat's user avatar
  • 1
0 votes
0 answers
20 views

DataTables 1.10 - column width is not working as expected

I have defined a datatable per the below. I am using bootstrap 5. I have read this thread but I still cannot get column width to work. I have tried to change the width using 5%, 500%, 100%, 5px, ...
spreaderman's user avatar
  • 1,036
-1 votes
0 answers
32 views

Html table columns displayed at rows positions [duplicate]

Assume we have this code with high number of columns ( similar to my project sceanrio ): $(document).ready(function() { $('#example').DataTable({ responsive: true }); }); .crud-btn { ...
Tou Mou's user avatar
  • 1,272
2 votes
0 answers
55 views

DataTable table ordering fails when used in HTMX responsive table

I have played around with a few ways to create responsive tables and I like the htmx approach. The issue I run into is I loose some of the DataTables functions I have relied upon, mainly the ability ...
Bonny Clarke's user avatar
0 votes
1 answer
21 views

DataTable is initialized with a "No result to display" but the dt-length, dt-search, dt-info and dt-paging is showing and dt-paging NaN as data-dt-idx

jQuery: 3.7.1 DataTable: 2.0.6 $(#dtTable).DataTable({ paging: true, ordering: true, serverSide: true, searching: true, // ordering of the table default [column,direction] ...
heero's user avatar
  • 298
0 votes
1 answer
38 views

jquery removeClass not removing the class

In my createdRow function for my datatable, I am trying to remove a class from the last TD. Below is the code for the function. The add class was just a test to see if the function was being fired and ...
ProfoundHypnotic's user avatar

15 30 50 per page
1
2 3 4 5
1384