Quantcast
Channel: DataTables 1.10 — DataTables forums
Browsing all 2364 articles
Browse latest View live

More flexibel Excel export

This is to share my latest work on exporting data to Excel including formatting and dynamic column ordering and selection. While I already had column formatting (numbers, percentages, custom column...

View Article


Overriding tr.odd and tr.even depending on data

My customer wants the standard alternating <tr> background color to be overridden depending on data. Specifically, data rows older than 2024 should be colored differently (also alternating like...

View Article


Print button results in printed header with Exported data

using DataTables 1.13.8, Buttons 2.4.2, HTML5 export 2.4.2, Print view 2.4.2: let table = new DataTable('#historyTable', { lengthMenu: [ [-1, 10, 25, 50, -1], ['ALL', 10, 25, 50] ], buttons: ['print'],...

View Article

Add a second row to a footer

I have the following footer call back and I would like to add a second row, The code below works perfectly I just need to add another row that will be some equations. I can not for the life of me...

View Article

How to search across multiple columns?

I want to search for a specific text in 2 different columns. Basically does the keyword "hamster" appear in column 1 or 6 and display the results. But I cannot figure out how that is working. I have...

View Article


Image may be NSFW.
Clik here to view.

HTML select on same line as Search

Hopefully this is a easy one. I want to have a html select to show on the same line to the left of the search. Here is the HTML I am currently using <div class='row'> <div class='col-auto'>...

View Article

How to pass a dinamic filter to mjoin?

Good morning, everyone, I would like to know if it is possible somehow to pass a variable filter to mjon. Let me explain better, I already have a "static" filter that works fine: PHP $editor->join(...

View Article

Column width does not work with search filter

Link to test case: Debugger code (debug.datatables.net): Error messages shown: Description of problem: When I set column widths in columnDefs, it works fine, once I set autoWidth to false. When I add...

View Article


After upgrade, character encoding is broken

I upgrade to DT 1.13.10 (from a 1.9.x version) and after that, my production site's character encoding is broken. My local instance is just fine, I did the tests and then moved to production but...

View Article


Issue with .on( 'click', 'tr', function ()

I have an .on( 'click', 'tr', function () in my DataTable that is not working correctly. When I click one one row and then another , the class active is not remove on previous row. I suspect it may be...

View Article

How can i get an import package to display dates and times? right now they...

(```) < <table id="example" class="table table-bordered table-striped"> <thead > <tr> <th >Service Date</th> <th >Route</th> <th >Bus</th>...

View Article

Sum Total Error

I'm trying to add up the amount that each customer owes but it's adding up wrong, besides the sum being wrong, it only returns the sum for one customer <?php /* * DataTables example server-side...

View Article

Using the latest version of DataTables 2.0.3

Getting a weird error using the lasted version of DataTables. Never seen this before. datatables.min.js:4 Uncaught TypeError: e.apply is not a function at datatables.min.js:4:43510 at Array.map...

View Article


The dreaded "Requested unknown parameter for row 0, column 0"

Another hair-tearing-out problem! I cannot figure out why I am getting this error, no matter how I configure the columns. I have tried different sets of columns but the first one is always throwing up...

View Article

DataTable.render.select is not a function...and inline editing not working

Trying to replicate the simple inline editing example (https://editor.datatables.net/examples/inline-editing/simple.html) with my own application. But I just get this error on loading, no select...

View Article


Is there a way to create a dynamic table using ajax data?

Link to test case: Debugger code (debug.datatables.net): Error messages shown: Description of problem: I've done a search for this problem, but the problem is that all the examples show the columns...

View Article

Copying only column data

It is possible to select rows and copy them with copyHtml5? Copy button by default copies the row data even if only one cell or a column (or a group of columns) is selected. I couldn't extend the copy...

View Article


Design Suggestion: Paginate over a subset of API data from an API with...

This question is more a request for a suggested design based on the community's experience. Essentially I need to paginate over a subset of API data from an API with limited search/filter and...

View Article

FixedHeader not working

Hi guys, I'm trying to get the FixedHeader to work, but it's not working for me. I included the files via the CDN link and they are included in the page source. There are no errors shown in the...

View Article

ssp setting a parameter from a column in array

I need to set a variable based on the the value of column in a ssp script , but for some reason it is not returning the value. $outOfOffice = ''; $columns[] = array( 'db' => 'OUT_OF_OFFICE', 'dt'...

View Article
Browsing all 2364 articles
Browse latest View live