Quantcast
Channel: Buttons — DataTables forums
Browsing latest articles
Browse All 482 View Live

Export single row to custom pdf

Hello, Using buttons, I am able to export the data of 1 or several rows in several formats, but it exports a table. What I am trying to do is exporting the data of a single row of the datatable into a...

View Article


Single button to hide 1 column while making another column visible.

Hi, I've working with the custom buttons and have been able to get my columns to be made visible with the following code. My problem is that when I make columns visible, I want the others invisible. I...

View Article


Image may be NSFW.
Clik here to view.

Footer export issues

First issue: The Excel and PDF exports the footer but Copy, CSV and Print don't. This can be seen with the Basic Example. My understanding is the default is the footer is not included. Second issue:...

View Article

Generator still not working correctly if pdfmake is selected

It would have been nice if you had deselected pdfmake as it corrupts the whole result of generator. It took me some time to figure out why Generator, even in the new version, doesn't work:...

View Article

Simpe Demo To Add Checkmarks To Active Buttons In Collection

Love the new dt2.0 checkmarks depicting active elements in row length and column visibility properties. Here is simple demo showing how to add similar checkmarks to buttons in a collection. c

View Article


Simple Demo To Tone Down Select Color

Here's link to simple demo that employs a more subtle background and hover coloring (than the default) when using Select extension. Was a little tricky, so thought I would share. c

View Article

How do i add multiple rows in a table using .create

I want to add 15 dummy entries when i press the button with the same value. I cannot use rows.add() function as my id in database is auto incremented so it throws an error saying row id is not defined...

View Article

Simple Demo of Export Collection with Checks On Hover

Continue to love the new checks in Button extension, thank you. Here is a simple demo of putting copy and csv extensions into an Export button collection. Then, adding checks on hover. Uses latest dt...

View Article


className not working on buttons

https://datatables.net/extensions/buttons/examples/initialisation/className I noticed that the colours on the buttons are gone. I have the same issue, using Bootstrap5 it seems colours on buttons are...

View Article


Image may be NSFW.
Clik here to view.

DT2.0 and Excel BTN 3.0.1 - Columns rearrange with headers not working

Hi, I have updated to DT2.0, and I've noticed when I export to excel my columns data is OK, but the headers are in positions like in my DT. example: exportOptions: { columns: [28, 1, 2, 7, 8, 14, 15,...

View Article

Button export csvHtml5 - skip download

Hi, I want to send the CSV data to the server and not download it i am using the following export settings. ! exportOptions: { ! modifier: { ! search: 'applied', ! page : 'all' ! }, ! columns:...

View Article

Image may be NSFW.
Clik here to view.

Parent in button config

I have two button groupss, one in top2State (named 'filter-main') and another in top1Start (named 'filter-locations'). I'm looking for each button in the group to refer to its parent group under the...

View Article

Need help converting to new layout from dom.

Old (borrowed from https://github.com/DataTables/DataTables/blob/master/media/js/dataTables.bootstrap4.js#L48): const BS4DOM = "<'row'<'col-sm-6 col-md-12'<'#buttonContainer'>>>" +...

View Article


Editor Edit all selected rows and submit

hey, I built a custom button to get all the selected rows and change the value of a column based on another. it works great but I can't get it to submit multiple lines I have multiple selected. is...

View Article

Duplicate entire record

I can use the duplicate button to copy the selected fields of a row but is that possible to copy entire record even I have only selected some fields for Editing?

View Article


Does the latest version of buttons support printing the grouping header rows

I am currently using the following versions: DataTables 1.10.24, Buttons 1.7.0, Print view 1.7.0, Editor 2.0.2, Row Group 1.1.2 When printing the grouping headers are not shown. I have tried upgrading...

View Article

Datatable 2.0.7 button in layout giving error

new DataTable('#SpfxDatatable', { pageLength: 10, language: { "search": "Filter: " }, retrieve: true, responsive: true, scrollCollapse: true, scrollY: '50vh', buttons: [{ text: 'Show all groups',...

View Article


Server Side export

Hey @allan I extend excelHtml5 to make a download from server. I generate a file on aws and return the signed url to the client inside action: function(e, dt, button, config) I have two question here:...

View Article

Child Rows do not export to Excel in applied sort order

Hello! I've adopted Kevin's Child Row Export code from the thread referenced below, but found that child table rows are not exported in the applied sort order. In this test case, the default order is...

View Article

Position Export button to the left of Search box

Hi, I am trying to position the Export button to the left of the search box on the top right corner of the dataTable I am using layout to position many custom buttons around the table [top left, top...

View Article

Image may be NSFW.
Clik here to view.

PDF Export color change and formatting differences that truncate data

Hopefully the images upload, but my testers reported an issue to me today that PDF export was now truncating data. I've attached what the print preview looked like before and after now. Before has the...

View Article


Buttons colvis `columns` option not working with multi-row header

Link to test case: Description of problem: I am upgrading from DataTables 1.13.6 --> 2.1.8, Buttons 2.4.2 --> 3.1.2. I have tables with multi-row headers, some of which I wish to exclude from the...

View Article


Print view - missing styles

Link to test case: <!DOCTYPE html> <html> <head> <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script> <link...

View Article

Excell export format HTML works only on first page

In my cells I have Buttons and Inputs. I need values for Excel. The code below works but only for 1st page. How to make it working for all pages? format: { body: function (data, row, column, node) { //...

View Article

PDF Export with Custom Order - Column Headings not changing

Link to test case: https://live.datatables.net/cahacagi/1/edit Debugger code (debug.datatables.net): Cant seem to get that to work Error messages shown: None Description of problem: Hi In the example,...

View Article


Can PDFmake be updated to the latest version v0.2.x without any problems?

Link to test case: NA Debugger code (debug.datatables.net): NA Error messages shown: NA Description of problem: Hello, I'd like to know if we can update pdfmake to the latest version 0.2.x without any...

View Article

Tabbing through list of columns in column visibility not working when using...

Link to test case: https://datatables.net/extensions/buttons/examples/styling/foundation.html Description of problem: Column Visibility using foundation does not allow you to tab through the column...

View Article

Bootstrap 5 collection editor edit disabled

Link to test case: https://live.datatables.net/gepalawi/1/ Error messages shown: none Description of problem: hi minor issue, i hope the test case is setup properly, this is linked to editor when using...

View Article

Change Request for Buttons.customize to cancel export on FALSE.

Request To be brief, I find it useful to be able to cancel a table export by returning FALSE from the 'customize' callback that can be defined for each button. This is desired for all of the export...

View Article



Dropdown Button for Filter Stopped Working

jQuery version: 3.7.1 Datatables: 2.3.7 Buttons: 3.2.6 Did the collectionLayout: function() {} stop working in the most recent release of DataTables? I was calculating the visible columns based on the...

View Article
Browsing latest articles
Browse All 482 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>