Relative Content

Tag Archive for javascriptjquerydatatables

Default row group in DataTables

I am trying to group the rows of my table by project. I want to know if there is a way to add a default grouping row, in my case it would be ‘No project’. My idea is to make something like the image.
Table image

Deafult row group in DataTables

I am trying to group the rows of my table by project. I want to know if there is a way to add a default grouping row, in my case it would be ‘No project’. My idea is to make something like the image.
Table image

Datatable big data around 40k takes too long to filter

I am currently using the latest version of jQuery DataTables.
I have multiple filters and a search bar.
However, when I use any of them, it takes about 30 seconds to display the results. According to Google’s performance check, the long task is within the DataTable script.
Sometimes it gets stuck while filtering rows, causing the browser to crash.
The Datatable function that takes too long is _fnFilter which runs couples of time with each filter.
I have tried everything but nothing seems to help.
This issue occurred on Google Chrome but not in Firefox.

DataTable – duplicate rows

I’m trying to implement a jQuery DataTable (source: https://datatables.net/) and all is well except for the fact that duplicate rows are being shown. I look at my data coming back from the server, and it’s just 3 items. But, the DataTable shows 6 items. A single copy for each original row in the table.