<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Buttons — DataTables forums</title>
        <link>https://next.datatables.net/forums/</link>
        <pubDate>Wed, 22 Jul 2026 01:34:42 +0000</pubDate>
        <language>en</language>
            <description>Buttons — DataTables forums</description>
    <language>en</language>
    <atom:link href="https://next.datatables.net/forums/categories/buttons/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Dropdown Button for Filter Stopped Working</title>
        <link>https://next.datatables.net/forums/discussion/81680/dropdown-button-for-filter-stopped-working</link>
        <pubDate>Tue, 17 Feb 2026 16:46:14 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>sachiel</dc:creator>
        <guid isPermaLink="false">81680@/forums/discussions</guid>
        <description><![CDATA[<p>jQuery version: 3.7.1<br />
Datatables: 2.3.7<br />
Buttons: 3.2.6</p>

<p>Did the collectionLayout: function() {} stop working in the most recent release of DataTables?  I was calculating the visible columns based on the window width, but now I get an error message and no dropdown is showing.</p>

<p>Error from browser:</p>

<pre><code>dataTables.buttons.min.js:4 
** Uncaught TypeError: h.collectionLayout.includes is not a function**
_popover    @   dataTables.buttons.min.js:4
(anonymous) @   dataTables.buttons.min.js:4
map @   dataTables.min.js:4
(anonymous) @   dataTables.buttons.min.js:4
(anonymous) @   dataTables.min.js:4
action  @   dataTables.buttons.min.js:4
s   @   dataTables.buttons.min.js:4
r   @   dataTables.buttons.min.js:4
(anonymous) @   dataTables.buttons.min.js:4
dispatch    @   jquery.js:2
v.handle    @   jquery.js:2
</code></pre>

<p>Portion of code:<br />
              layout: {<br />
                top2Start: {<br />
                  buttons: [{<br />
                    text: '&lt;span class="fa-layers fa-fw"&gt;&lt;i class="fa fa-ban"&gt;&lt;/i&gt;&lt;i class="fa fa-filter" data-fa-transform="shrink-7"&gt;&lt;/i&gt;&lt;/span&gt; Clear Filter',<br />
                    action: function(e, dt, node, config) {<br />
                      // Clear Filter Button<br />
                      $('#dogs tfoot th').find('input,select').val('');<br />
                      $('input.flt:checkbox').prop('checked', false).parent().removeClass('active');<br />
                      $('input.flt:text,select.flt,input.flt:hidden').val('').data('null', '');<br />
                      $('.fltcol').addClass('d-none');<br />
                      $('#dogs').DataTable().columns().search('').draw();<br />
                      window.history.pushState({}, document.title, "&lt;?= $us_url_root ?&gt;index.php?view=dogs");<br />
                    }<br />
                  }<br />
                  &lt;? if ($user-&gt;isLoggedIn()) { ?&gt;,<br />
                    {<br />
                      extend: 'collection',<br />
                      text: '&lt;span class="fa-layers fa-fw"&gt;&lt;i class="fa fa-filter" data-fa-transform="shrink-2 down-3 left-3"&gt;&lt;/i&gt;&lt;i class="fa fa-plus" data-fa-transform="shrink-7 up-5 right-5"&gt;&lt;/i&gt;&lt;/span&gt; Add Filter',<br />
                      buttons: [<br />
                        //{ text: '&lt;? //=$lang['DOG_SIRE'] ?? 'Sire'
                                    ?&gt;', action: function () {showFormControl('sire-id');} },<br />
                        //{ text: '&lt;? //=$lang['DOG_DAM'] ?? 'Dam'
                                    ?&gt;', action: function () {showFormControl('dam-id');} },<br />
                        &lt;? if ($GLOBALS['config']['fields']['breeder'] == 0 || ($user-&gt;isLoggedIn() &amp;&amp; hasPerm($GLOBALS['config']['fields']['breeder'], $user-&gt;data()-&gt;id))) { ?&gt; {<br />
                            text: '&lt;?= $lang['DOG_BREEDER'] ?? 'Breeder' ?&gt;',<br />
                            action: function() {<br />
                              showFormControl('breeder-id');<br />
                            }<br />
                          },<br />
                        &lt;? } ?&gt;<br />
        more fields ...<br />
                          {<br />
                            text: '&lt;?= $lang['DOG_ADMIN_NOTES'] ?? 'Hidden Notes' ?&gt;',<br />
                            action: function() {<br />
                              showFormControl('hiddenNotes');<br />
                            }<br />
                          }<br />
                        &lt;? } ?&gt;<br />
                      ],<br />
                      autoClose: true,<br />
                      collectionLayout: function() {<br />
                        var colsAllow = Math.floor(window.innerWidth / 300);<br />
                        if (colsAllow &gt;= 4) {<br />
                          return 'four-column';<br />
                        } else if (colsAllow == 3) {<br />
                          return 'three-column';<br />
                        } else if (colsAllow == 2) {<br />
                          return 'two-column';<br />
                        } else {<br />
                          return 'one-column';<br />
                        }<br />
                      },<br />
                      fade: true<br />
                    }</p>
]]>
        </description>
    </item>
    <item>
        <title>Change Request for Buttons.customize to cancel export on FALSE.</title>
        <link>https://next.datatables.net/forums/discussion/81642/change-request-for-buttons-customize-to-cancel-export-on-false</link>
        <pubDate>Sat, 31 Jan 2026 23:44:31 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>michael_657</dc:creator>
        <guid isPermaLink="false">81642@/forums/discussions</guid>
        <description><![CDATA[<h3 data-anchor="Request"><a name="Request" rel="nofollow" href="#Request"></a>Request</h3>

<p>To be brief, I find it useful <strong>to be able to cancel a table export by returning FALSE from the 'customize' callback</strong> that can be defined for each button.</p>

<p>This is desired for all of the export button options: <strong>csv</strong>, <strong>excelHtml5</strong>, <strong>pdfHtml5</strong>, <strong>print</strong>, and, perhaps, <strong>copy</strong> to clipboard.</p>

<p><a rel="nofollow" href="https://datatables.net/reference/button/excelHtml5#customize" title="Here's the documentation for the excelHtml5 one.">Here's the documentation for the excelHtml5 one.<br />
</a> Function call looks like this: <code>config.customize(xlsx, config, dt)</code>.</p>

<h3 data-anchor="Context"><a name="Context" rel="nofollow" href="#Context"></a>Context</h3>

<p>This is mostly useful as this is where I do report validation using the data fed into 'customize' to generate custom reports from the table data. Sometimes the state of the table data is invalid for the selected report and I don't need to continue exporting anymore. Or the changes cause an issue with the export if continued (which likely might've been my fault; got it working before I found out what was going wrong).</p>

<p>I've been manually applying the edit myself due to wanting to take advantage of DataTables' capability to package the table into the export format for me and I've been able to find the five locations in the Buttons code with <code>.customize(</code> to place the edits to make this possible.</p>

<p>Perhaps I'm doing something unrecommended but it's been working well for me.</p>
]]>
        </description>
    </item>
    <item>
        <title>Bootstrap 5 collection editor edit disabled</title>
        <link>https://next.datatables.net/forums/discussion/81467/bootstrap-5-collection-editor-edit-disabled</link>
        <pubDate>Wed, 22 Oct 2025 13:49:10 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>foxy_stoat</dc:creator>
        <guid isPermaLink="false">81467@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>: <a rel="nofollow" href="https://live.datatables.net/gepalawi/1/">https://live.datatables.net/gepalawi/1/</a><br />
<strong>Error messages shown</strong>: none<br />
<strong>Description of problem</strong>:<br />
hi<br />
minor issue, i hope the test case is setup properly, this is linked to editor<br />
when using a button collection for the editor functionality the edit button is functioning but visually it is not "disabled" when no row is selected.<br />
example also shows an inline edit button which works fine (using 'btn' class) but the drop downs use the 'dt-button' and visually appear the same (new - edit) regardless of selection.</p>

<p>i think its related to</p>

<pre><code>&lt;li class="dt-button buttons-selected buttons-edit disabled" aria-controls="example"&gt;
&lt;a href="#" tabindex="0" class="dropdown-item"&gt;Edit&lt;/a&gt;&lt;/li&gt;
</code></pre>

<p>the disabled class is being set on the &lt;li&gt; and possibly should be on the &lt;a&gt;<br />
ref:<a rel="nofollow" href="https://getbootstrap.com/docs/5.3/components/dropdowns/#disabled">https://getbootstrap.com/docs/5.3/components/dropdowns/#disabled</a></p>

<p>thanks in advance for any help<br />
pete</p>
]]>
        </description>
    </item>
    <item>
        <title>Tabbing through list of columns in column visibility not working when using foundation styling</title>
        <link>https://next.datatables.net/forums/discussion/81037/tabbing-through-list-of-columns-in-column-visibility-not-working-when-using-foundation-styling</link>
        <pubDate>Thu, 12 Jun 2025 20:17:59 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>cuspenser</dc:creator>
        <guid isPermaLink="false">81037@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>: <a rel="nofollow" href="https://datatables.net/extensions/buttons/examples/styling/foundation.html">https://datatables.net/extensions/buttons/examples/styling/foundation.html</a><br />
<strong>Description of problem</strong>:<br />
Column Visibility using foundation does not allow you to tab through the column options.  See the example above.  When you click on the "Column Visibility" button and the menu of columns appear, tabbing only rotates through the first two options in the list and goes no further.</p>

<p>It doesn't look like focus is occurring correctly on the first column.  The focus border is surrounding the anchor tag and not the li tag.  Not sure if that's part of the issue, but it's something I've noticed.</p>

<p>I'm using Foundation 6.4.3 in my application, too, which I believe is also being used by DataTables.</p>

<p>Any ideas on a workaround?</p>

<p>Thank you,</p>

<p>Tanner</p>
]]>
        </description>
    </item>
    <item>
        <title>Can PDFmake be updated to the latest version v0.2.x without any problems?</title>
        <link>https://next.datatables.net/forums/discussion/80773/can-pdfmake-be-updated-to-the-latest-version-v0-2-x-without-any-problems</link>
        <pubDate>Fri, 28 Mar 2025 14:59:53 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>slolo</dc:creator>
        <guid isPermaLink="false">80773@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>: NA<br />
<strong>Debugger code (debug.datatables.net)</strong>: NA<br />
<strong>Error messages shown</strong>: NA<br />
<strong>Description of problem</strong>: Hello,</p>

<p>I'd like to know if we can update pdfmake to the latest version 0.2.x without any issues?</p>

<p>The pdfmake version provided by the Datatables plugins is v0.2.7 and was released on December 17, 2022.<br />
The latest v0.2.18 was released on January 1, 2025.</p>

<p>Is there a reason why this plugin isn't updated?</p>

<p>Thanks in advance and have a nice day.</p>
]]>
        </description>
    </item>
    <item>
        <title>Position Export button to the left of Search box</title>
        <link>https://next.datatables.net/forums/discussion/79807/position-export-button-to-the-left-of-search-box</link>
        <pubDate>Mon, 09 Sep 2024 14:56:19 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>wijwij</dc:creator>
        <guid isPermaLink="false">79807@/forums/discussions</guid>
        <description><![CDATA[<p>Hi,<br />
I am trying to position the Export button to the left of the search box on the top right corner of the dataTable<br />
I am using layout to position many custom buttons around the table [top left, top right, bottom left, bottom right] using help from this page: <a rel="nofollow" href="https://datatables.net/reference/option/layout">https://datatables.net/reference/option/layout</a><br />
I already added the following to the layout</p>

<pre><code>_layout:{
     topEnd:{
           buttons[
               {extend:'collection',text:'Export', buttons:['copy','csv','excel','pdf','print']},
                      ],
             search {},
               },_
</code></pre>

<p>But the problem is that the search box appears on top of the "Export" button</p>

<p>Appreciate your help</p>
]]>
        </description>
    </item>
    <item>
        <title>PDF Export with Custom Order - Column Headings not changing</title>
        <link>https://next.datatables.net/forums/discussion/80596/pdf-export-with-custom-order-column-headings-not-changing</link>
        <pubDate>Mon, 17 Feb 2025 05:34:29 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>foxy_stoat</dc:creator>
        <guid isPermaLink="false">80596@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>: <a rel="nofollow" href="https://live.datatables.net/cahacagi/1/edit">https://live.datatables.net/cahacagi/1/edit</a><br />
<strong>Debugger code (debug.datatables.net)</strong>: Cant seem to get that to work<br />
<strong>Error messages shown</strong>: None<br />
<strong>Description of problem</strong>:</p>

<p>Hi</p>

<p>In the example, PDF button - it has a custom order set exportOptions: { columns: [3,4,5,2] } - in the PDF the data in the columns reflects this order but the headings dont - should be D E F C not C D E F</p>

<p>Hope I have not missed something obvious</p>

<p>Let me know if you need more information.</p>

<p>Thanks</p>

<p>pete</p>
]]>
        </description>
    </item>
    <item>
        <title>Excell export format HTML works only on first page</title>
        <link>https://next.datatables.net/forums/discussion/80400/excell-export-format-html-works-only-on-first-page</link>
        <pubDate>Wed, 01 Jan 2025 12:55:19 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>awariat</dc:creator>
        <guid isPermaLink="false">80400@/forums/discussions</guid>
        <description><![CDATA[<p>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?</p>

<pre><code> format: {
          body: function (data, row, column, node) {
            // Check for button groups first
            const buttonGroups = $(node).find('.btn-group');
            if (buttonGroups.length) {
              // Process button groups
              return buttonGroups.map(function () {
                const primary = $(this).find('.btn-primary').text().trim(); // Get the primary button text
                const success = $(this).find('.btn-success').text().trim(); // Get the success button text
                return `${primary}:${success}`; // Combine the values with a colon
              }).get().join(', '); // Join multiple button groups with a comma
            }

            // Check for individual buttons
            const buttons = $(node).find('button');
            if (buttons.length) {
              return buttons.map(function () {
                return $(this).text().trim(); // Get the text of each button
              }).get().join(', '); // Join button values with a comma
            }

            const inputElement = $(node).find('input');
            if (inputElement.length) {
              return inputElement.val(); // Return the value of the input element
            }
            return data; // Otherwise, return the cell data as-is
          }
        }

      },
</code></pre>
]]>
        </description>
    </item>
    <item>
        <title>Buttons colvis `columns` option not working with multi-row header</title>
        <link>https://next.datatables.net/forums/discussion/80079/buttons-colvis-columns-option-not-working-with-multi-row-header</link>
        <pubDate>Thu, 17 Oct 2024 21:19:43 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>lisarush</dc:creator>
        <guid isPermaLink="false">80079@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>:<br />
<strong>Description of problem</strong>:</p>

<p>I am upgrading from DataTables 1.13.6 --&gt; 2.1.8, Buttons 2.4.2 --&gt; 3.1.2.  I have tables with multi-row headers, some of which I wish to exclude from the "column visibility" list, e.g.:</p>

<pre><code>      &lt;table id="example" class="display nowrap" width="100%"&gt;
        &lt;thead&gt;
        &lt;tr&gt;
           &lt;th rowspan="2"&gt;Name&lt;/th&gt;
           &lt;th rowspan="2" class="noColvis"&gt;Position&lt;/th&gt;
           &lt;th colspan="3"&gt;Values&lt;/th&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
           &lt;th&gt;Val1&lt;/th&gt;
           &lt;th class="noColvis"&gt;Val2&lt;/th&gt;
           &lt;th&gt;Val2&lt;/th&gt;
        &lt;/tr&gt;
        &lt;/thead&gt;

        &lt;tbody&gt;
          &lt;tr&gt;
            &lt;td&gt;Tiger Nixon&lt;/td&gt;
            &lt;td&gt;System Architect&lt;/td&gt;
            &lt;td&gt;0.5&lt;/td&gt;
            &lt;td&gt;Edinburgh&lt;/td&gt;
            &lt;td&gt;61&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
            &lt;td&gt;Garrett Winters&lt;/td&gt;
            &lt;td&gt;Director&lt;/td&gt;
            &lt;td&gt;0.5&lt;/td&gt;
            &lt;td&gt;Edinburgh&lt;/td&gt;
            &lt;td&gt;63&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
            &lt;td&gt;Ashton Cox&lt;/td&gt;
            &lt;td&gt;Technical Author&lt;/td&gt;
            &lt;td&gt;0.5&lt;/td&gt;
            &lt;td&gt;San Francisco&lt;/td&gt;
            &lt;td&gt;66&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
            &lt;td&gt;Cedric Kelly&lt;/td&gt;
            &lt;td&gt;Javascript Developer&lt;/td&gt;
            &lt;td&gt;0.5&lt;/td&gt;
            &lt;td&gt;Edinburgh&lt;/td&gt;
            &lt;td&gt;22&lt;/td&gt;
          &lt;/tr&gt;
        &lt;/tbody&gt;
      &lt;/table&gt;
</code></pre>

<p>My <code>colvis</code> button is configured as such:</p>

<pre><code>new DataTable('#example', {
    layout: {
        topStart: {
            buttons: [
                {
                    extend: 'colvis',
                    columns: ':not(.noColvis)'
                }
            ]
        }
    }
});
</code></pre>

<p>When showing the list of columns to turn on/off, it is properly hiding the "Position" column (which is essentially in row 1), but "Val2" shows in the list.  This used to work previous to the upgrade.  Any help/pointers would be appreciated.</p>

<p>Thanks!<br />
Lisa</p>
]]>
        </description>
    </item>
    <item>
        <title>Print view - missing styles</title>
        <link>https://next.datatables.net/forums/discussion/80105/print-view-missing-styles</link>
        <pubDate>Mon, 21 Oct 2024 19:11:31 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>lisarush</dc:creator>
        <guid isPermaLink="false">80105@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>:</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
  &lt;head&gt;
    &lt;script src="https://code.jquery.com/jquery-3.7.1.min.js"&gt;&lt;/script&gt;
&lt;link href="https://cdn.datatables.net/v/dt/dt-2.1.8/b-3.1.2/b-colvis-3.1.2/b-html5-3.1.2/b-print-3.1.2/datatables.min.css" rel="stylesheet"&gt;
&lt;script src="https://cdn.datatables.net/v/dt/dt-2.1.8/b-3.1.2/b-colvis-3.1.2/b-html5-3.1.2/b-print-3.1.2/datatables.min.js"&gt;&lt;/script&gt;
    &lt;meta charset=utf-8 /&gt;
    &lt;title&gt;DataTables - JS Bin&lt;/title&gt;
    &lt;style&gt;
       .fw-bold {
           font-weight: bold;
       }
    &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div class="container"&gt;
&lt;table id="example" class="display nowrap" width="100%"&gt;
  &lt;thead&gt;
  &lt;tr&gt;
     &lt;th rowspan="2"&gt;Name&lt;/th&gt;
     &lt;th rowspan="2" class="noColvis"&gt;Position&lt;/th&gt;
     &lt;th colspan="3" class="noColvis"&gt;Values&lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
     &lt;th&gt;Val1&lt;/th&gt;
     &lt;th class="noColvis"&gt;Val2&lt;/th&gt;
     &lt;th&gt;Val3&lt;/th&gt;
  &lt;/tr&gt;
  &lt;/thead&gt;
 
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Tiger Nixon&lt;/td&gt;
      &lt;td&gt;System Architect&lt;/td&gt;
      &lt;td class="dt-right fw-bold"&gt;0.5&lt;/td&gt;
      &lt;td&gt;Edinburgh&lt;/td&gt;
      &lt;td class="dt-right fw-bold"&gt;61&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Garrett Winters&lt;/td&gt;
      &lt;td&gt;Director&lt;/td&gt;
      &lt;td&gt;0.5&lt;/td&gt;
      &lt;td&gt;Edinburgh&lt;/td&gt;
      &lt;td&gt;63&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Ashton Cox&lt;/td&gt;
      &lt;td&gt;Technical Author&lt;/td&gt;
      &lt;td&gt;0.5&lt;/td&gt;
      &lt;td&gt;San Francisco&lt;/td&gt;
      &lt;td&gt;66&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Cedric Kelly&lt;/td&gt;
      &lt;td&gt;Javascript Developer&lt;/td&gt;
      &lt;td&gt;0.5&lt;/td&gt;
      &lt;td&gt;Edinburgh&lt;/td&gt;
      &lt;td&gt;22&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
    &lt;/div&gt;
  &lt;/body&gt;
&lt;/html&gt;
</code></pre>

<pre><code>new DataTable('#example', {
    layout: {
        topStart: {
            buttons: [
              {
                extend:'print',
                autoPrint:false
              }
            ]
        }
    }
});
</code></pre>

<p><strong>Description of problem</strong>:<br />
Styles added to individual cells are not copied to the Print view.  See classes added to 1st row above.<br />
This is not an important issue for me, but the styles did transfer over to the Print view before I upgraded (DataTables 1.13.6 --&gt; 2.1.8, Buttons 2.4.2 --&gt; 3.1.2).</p>
]]>
        </description>
    </item>
    <item>
        <title>PDF Export color change and formatting differences that truncate data</title>
        <link>https://next.datatables.net/forums/discussion/80067/pdf-export-color-change-and-formatting-differences-that-truncate-data</link>
        <pubDate>Wed, 16 Oct 2024 16:20:09 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>REJIS</dc:creator>
        <guid isPermaLink="false">80067@/forums/discussions</guid>
        <description><![CDATA[<p><img src="https://datatables.net/forums/uploads/editor/rx/utg8xe2j5noo.png" alt="" title="" /><br />
<img src="https://datatables.net/forums/uploads/editor/45/g1vkattd0yxj.png" alt="" title="" /></p>

<p>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 blue header and everything fit within the page bounds.  Now it looks like it is just grabbing the print output and generating a PDF which drops the header color and everything is bigger and cropped off the page.</p>

<p>Is there a default I can change to make it render the old way?  I don't care so much about the color change as they can just get over it, but the truncated data is a show stopper.</p>
]]>
        </description>
    </item>
    <item>
        <title>Child Rows do not export to Excel in applied sort order</title>
        <link>https://next.datatables.net/forums/discussion/79776/child-rows-do-not-export-to-excel-in-applied-sort-order</link>
        <pubDate>Tue, 03 Sep 2024 17:55:30 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>mj0seph</dc:creator>
        <guid isPermaLink="false">79776@/forums/discussions</guid>
        <description><![CDATA[<p>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.</p>

<ul>
<li>In this test case, the default order is descending by "AR Total".</li>
<li>When expanding child table, you can see the current order of the parent table is successfully applied to the child table.</li>
<li>When exporting to Excel, however, the child table order is the same as its load order (in production, child data arrives with an ajax call).</li>
</ul>

<p>I thought this might be handled in the childTable For loop...</p>

<pre><code>              // The child data is an array of rows
              for (c = 0; c &lt; childTable.rows().count(); c++) {
                // Get row data.
                rowData = childTable.row(c, { order: "applied"}).data();
                // order is specified as applied, yet initial order is used instead.
</code></pre>

<p>but it doesn't make a difference</p>

<p>Here's the thread discussing the child row export:<br />
<a rel="nofollow" href="https://datatables.net/forums/discussion/comment/160693">https://datatables.net/forums/discussion/comment/160693</a></p>

<p>Here's the test case:<br />
<a rel="nofollow" href="https://live.datatables.net/toguvute/1/edit">https://live.datatables.net/toguvute/1/edit</a></p>

<p>Thanks!</p>
]]>
        </description>
    </item>
    <item>
        <title>Server Side export</title>
        <link>https://next.datatables.net/forums/discussion/79387/server-side-export</link>
        <pubDate>Fri, 12 Jul 2024 13:25:51 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>mete12</dc:creator>
        <guid isPermaLink="false">79387@/forums/discussions</guid>
        <description><![CDATA[<p>Hey <a href="https://next.datatables.net/forums/profile/allan" rel="nofollow">@allan</a></p>

<p>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)</p>

<p>I have two question here:<br />
1- How can I signal button spinner to stop when the operation is complete?<br />
2- Is there any chance to provide this url to the datatables to complete download on browser.</p>
]]>
        </description>
    </item>
    <item>
        <title>Datatable 2.0.7 button in layout giving error</title>
        <link>https://next.datatables.net/forums/discussion/79120/datatable-2-0-7-button-in-layout-giving-error</link>
        <pubDate>Mon, 27 May 2024 11:18:16 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>Asmita_Adh</dc:creator>
        <guid isPermaLink="false">79120@/forums/discussions</guid>
        <description><![CDATA[<pre><code>new DataTable('#SpfxDatatable', {
      pageLength: 10,
      language: { "search": "Filter: " },
      retrieve: true,
      responsive: true,
      scrollCollapse: true,
      scrollY: '50vh',
      buttons: [{ text: 'Show all groups', action: function () { alert('Clicked'); }, className:'hideEmptyButton' }],
      layout: {
        topStart: {
          buttons: [
            'copy', 'excel', 'pdf'
          ]
        },
        topEnd: 'search',
        bottomStart: 'info',
        bottomEnd: 'paging'
}
    })
</code></pre>

<p>When i use DOM opttions all the features align left. When I try to use layouts, buttons is not available.<br />
I am using it in a spfx solution with react and have imported all the necessary components.</p>

<pre><code>import 'datatables.net-buttons-dt';
import 'datatables.net-dt/css/dataTables.dataTables.min.css';
import 'datatables.net-responsive-dt';
import DataTable from 'datatables.net-dt';
</code></pre>

<blockquote>
  <p><strong>Edited by Allan</strong> - Syntax highlighting. Details on how to highlight code using markdown can be <a rel="nofollow" href="/manual/tech-notes/8#Code">found in this guide</a>.</p>
</blockquote>
]]>
        </description>
    </item>
    <item>
        <title>Does the latest version of buttons support printing the grouping header rows</title>
        <link>https://next.datatables.net/forums/discussion/79008/does-the-latest-version-of-buttons-support-printing-the-grouping-header-rows</link>
        <pubDate>Tue, 14 May 2024 15:32:15 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>cckane_mcg</dc:creator>
        <guid isPermaLink="false">79008@/forums/discussions</guid>
        <description><![CDATA[<p>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</p>

<p>When printing the grouping headers are not shown.  I have tried upgrading all but Editor (not upgraded yet) but get errors in the editor js related to _fnExtend.  I will post more details if needed but what I really want to know is if the latest version of buttons supports printing the grouping headers.  If it does then I can get an upgrade of Editor approved.  If not then it is not worth the upgrade right now.</p>
]]>
        </description>
    </item>
    <item>
        <title>Duplicate entire record</title>
        <link>https://next.datatables.net/forums/discussion/78986/duplicate-entire-record</link>
        <pubDate>Mon, 13 May 2024 08:36:30 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>wonglik</dc:creator>
        <guid isPermaLink="false">78986@/forums/discussions</guid>
        <description><![CDATA[<p>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?</p>
]]>
        </description>
    </item>
    <item>
        <title>How do i add multiple rows in a table using .create</title>
        <link>https://next.datatables.net/forums/discussion/78415/how-do-i-add-multiple-rows-in-a-table-using-create</link>
        <pubDate>Thu, 07 Mar 2024 17:42:46 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>Aryan1703</dc:creator>
        <guid isPermaLink="false">78415@/forums/discussions</guid>
        <description><![CDATA[<p>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</p>

<pre><code> table.button().add(
            null, {
            text: 'Create Entries',
            action: function (e, dt, node, config) {
                // Function to generate and submit a new entry
                var tomorrow = new Date();
                tomorrow.setDate(tomorrow.getDate() + 1);
                var tomorrowFormatted = tomorrow.toISOString().slice(0, 19).replace("T", " ");
                editor
                    .create({
                        title: 'Create Entry',
                        buttons: 'Add',
                        formOptions: {
                            main: {
                                onSubmit: function (e, action) {
                                    action.submit();
                                }
                            }
                        }
                    })
                    .set('editdeliveredBy', 0)
                    .set('R.leadLRV', '52070')
                    .set('R.trailLrv', '52070')
                    .set('R.createdOn', tomorrowFormatted)
                    .submit();
            },
        });
</code></pre>
]]>
        </description>
    </item>
    <item>
        <title>Editor Edit all selected rows and submit</title>
        <link>https://next.datatables.net/forums/discussion/78826/editor-edit-all-selected-rows-and-submit</link>
        <pubDate>Wed, 24 Apr 2024 18:38:40 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>jmccolgan93</dc:creator>
        <guid isPermaLink="false">78826@/forums/discussions</guid>
        <description><![CDATA[<p>hey,</p>

<p>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.</p>

<p>is there a better way to do this or am I just missing something here.</p>

<pre><code>{
        text: "Return",
        editor: editor,
        className: "mb-2 btn btn-small btn-primary",
        enabled: false,
        action: function (e, dt, node, config) {
          let rows = dt_fixedheader.rows(".selected");
          console.log("# of selected=" + rows.data().length); //it shows number of selected row
          if (rows.data().length &gt; 0) {
            rows.every(function (rowIdx, tableLoop, rowLoop) {
              console.log(rowIdx, tableLoop, rowLoop)
              editor.edit(dt_fixedheader.row(rowIdx), false).set("checkedin", editor.get("checkedout")).submit();
          
            });
          }
        },
      }
</code></pre>
]]>
        </description>
    </item>
    <item>
        <title>Need help converting to new layout from dom.</title>
        <link>https://next.datatables.net/forums/discussion/78753/need-help-converting-to-new-layout-from-dom</link>
        <pubDate>Mon, 15 Apr 2024 18:50:00 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>washuit-iamm</dc:creator>
        <guid isPermaLink="false">78753@/forums/discussions</guid>
        <description><![CDATA[<p>Old (borrowed from <a rel="nofollow" href="https://github.com/DataTables/DataTables/blob/master/media/js/dataTables.bootstrap4.js#L48):">https://github.com/DataTables/DataTables/blob/master/media/js/dataTables.bootstrap4.js#L48):</a></p>

<pre><code>    const BS4DOM = "&lt;'row'&lt;'col-sm-6 col-md-12'&lt;'#buttonContainer'&gt;&gt;&gt;" +
      "&lt;'row'&lt;'col-sm-12'tr&gt;&gt;" +
      "&lt;'row'&lt;'col-sm-12 col-md-5'i&gt;&lt;'col-sm-12 col-md-7'p&gt;&gt;";
</code></pre>

<p>Is there an easy migration for the above? All of my pages use a helper function like so:</p>

<pre><code>    function AppendButtons(table, buttonGroupSelector) {
      table
        .buttons(buttonGroupSelector, null)
        .container()
        .appendTo('#buttonContainer');
</code></pre>
]]>
        </description>
    </item>
    <item>
        <title>Parent in button config</title>
        <link>https://next.datatables.net/forums/discussion/78684/parent-in-button-config</link>
        <pubDate>Sun, 07 Apr 2024 11:10:00 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>Loren Maxwell</dc:creator>
        <guid isPermaLink="false">78684@/forums/discussions</guid>
        <description><![CDATA[<p>I have two button groupss, one in <code>top2State</code> (named 'filter-main') and another in <code>top1Start</code> (named 'filter-locations').</p>

<p>I'm looking for each button in the group to refer to its parent group under the <a rel="nofollow" href="//datatables.net/reference/option/buttons.buttons.action"><code title="DataTables initialisation option">buttons.buttons.action</code></a> method and thought the <code>config</code> parameter might have it.</p>

<p>I did in fact find a <code>parent</code> property, but it seems it's always undefined.</p>

<p>Am I looking in the proper place, and should it be undefined?</p>

<p><strong>Layout:</strong><br />
<img src="https://datatables.net/forums/uploads/editor/yp/c8f2jivvg0vh.png" alt="" title="" /></p>

<p><strong>console.log(config):</strong><br />
<img src="https://datatables.net/forums/uploads/editor/w3/xhgd650tiqtb.png" alt="" title="" /></p>

<p><strong>Pseudocode:</strong></p>

<pre><code>layout: {
    top2Start: {
        buttons: {

            name: 'filter-main',

            buttons: [
                { ... other buttons ... },
                {
                    name: 'location',
                    text: 'By location',

                    action: function ( e, dt, node, config, cb ) {

console.log(config)

                    }
                },
                { ... other buttons ... }
            ]
        }
    },
    top1Start: {
        buttons: {

            name: 'filter-locations',

            buttons: [
                { ... other buttons ... },
                {
                    name: 'State',
                    text: 'State',

                    action: function ( e, dt, node, config, cb ) {

console.log(config)

                    }
                },
                { ... other buttons ... }
            ]
        }
    }
},
</code></pre>
]]>
        </description>
    </item>
    <item>
        <title>Button export csvHtml5 - skip download</title>
        <link>https://next.datatables.net/forums/discussion/78652/button-export-csvhtml5-skip-download</link>
        <pubDate>Wed, 03 Apr 2024 15:14:03 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>ltdeta</dc:creator>
        <guid isPermaLink="false">78652@/forums/discussions</guid>
        <description><![CDATA[<p>Hi,<br />
I want to send the CSV data to the server <strong>and not download it</strong><br />
i am using the following export settings.</p>

<blockquote>
  <p>! exportOptions: {<br />
  !                         modifier: {<br />
  !                           search: 'applied',<br />
  !                           page : 'all'<br />
  !                         },<br />
  !                         columns: ':not(:first-child)',<br />
  !                         columns: ':visible'<br />
  !                       },<br />
  !                   extension: '.csv',<br />
  !                   fieldSeparator: ';',</p>
</blockquote>

<p>How do I prevent only the download?</p>
]]>
        </description>
    </item>
    <item>
        <title>DT2.0 and Excel BTN 3.0.1 - Columns rearrange with headers not working</title>
        <link>https://next.datatables.net/forums/discussion/78539/dt2-0-and-excel-btn-3-0-1-columns-rearrange-with-headers-not-working</link>
        <pubDate>Wed, 20 Mar 2024 13:37:56 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>awariat</dc:creator>
        <guid isPermaLink="false">78539@/forums/discussions</guid>
        <description><![CDATA[<p>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.<br />
example:</p>

<p>exportOptions: { columns: [28, 1, 2, 7, 8, 14, 15, 16, 17],...</p>

<p>The data is from column 28 but header from column 0</p>

<p><img src="https://datatables.net/forums/uploads/editor/dd/votwi5dn7xlz.png" alt="" title="" /></p>

<p>Kind regards<br />
Jack</p>
]]>
        </description>
    </item>
    <item>
        <title>className not working on buttons</title>
        <link>https://next.datatables.net/forums/discussion/78459/classname-not-working-on-buttons</link>
        <pubDate>Mon, 11 Mar 2024 20:31:40 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>Ficos</dc:creator>
        <guid isPermaLink="false">78459@/forums/discussions</guid>
        <description><![CDATA[<p><a rel="nofollow" href="https://datatables.net/extensions/buttons/examples/initialisation/className" title="https://datatables.net/extensions/buttons/examples/initialisation/className"></a><a rel="nofollow" href="https://datatables.net/extensions/buttons/examples/initialisation/className">https://datatables.net/extensions/buttons/examples/initialisation/className</a></p>

<p>I noticed that the colours on the buttons are gone. I have the same issue, using Bootstrap5 it seems colours on buttons are no longer allowed?<br />
Does it matter in which order my files are loaded?</p>

<p>I have this now:</p>

<pre><code>&lt;link rel='stylesheet' type='text/css' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css'/&gt;
        &lt;link href="../dt/datatables.min.css" rel="stylesheet"&gt;
 

        &lt;!-- link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs5/jq-3.7.0/moment-2.29.4/jszip-3.10.1/dt-2.0.2/af-2.7.0/b-3.0.1/b-colvis-3.0.1/b-html5-3.0.1/b-print-3.0.1/cr-2.0.0/date-1.5.2/fc-5.0.0/fh-4.0.1/kt-2.12.0/r-3.0.0/rg-1.5.0/rr-1.5.0/sc-2.4.1/sb-1.7.0/sp-2.3.0/sl-2.0.0/sr-1.4.0/datatables.min.css" --&gt;
        &lt;link rel="stylesheet" type="text/css" href="../Editor-PHP-2.3.2/css/editor.bootstrap5.min.css"&gt;
        &lt;!-- link rel="stylesheet" type="text/css" href="../css/editor.bootstrap5.min.css" --&gt;
        &lt;link rel="styleshee" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.9.0/css/selectize.css"&gt;
        &lt;link rel="stylesheet" type="text/css" href="../css/editor.selectize.css"&gt;
        &lt;link rel="stylesheet" type="text/css" href="../css/generator-base.css"&gt;
    
        &lt;script src="../dt/datatables.min.js"&gt;&lt;/script&gt;
        &lt;!-- script type="text/javascript" charset="utf-8" src="https://cdn.datatables.net/v/bs5/jq-3.7.0/moment-2.29.4/jszip-3.10.1/dt-2.0.2/af-2.7.0/b-3.0.1/b-colvis-3.0.1/b-html5-3.0.1/b-print-3.0.1/cr-2.0.0/date-1.5.2/fc-5.0.0/fh-4.0.1/kt-2.12.0/r-3.0.0/rg-1.5.0/rr-1.5.0/sc-2.4.1/sb-1.7.0/sp-2.3.0/sl-2.0.0/sr-1.4.0/datatables.min.js"&gt;&lt;/script --&gt;
        &lt;script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/js/bootstrap.bundle.min.js'&gt;&lt;/script&gt;
        &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.7/pdfmake.min.js"&gt;&lt;/script&gt;
        &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.2.7/vfs_fonts.js"&gt;&lt;/script&gt;
        &lt;script type="text/javascript" charset="utf-8" src="../dt/Editor-2.3.1/js/dataTables.editor.min.js"&gt;&lt;/script&gt;
        &lt;script type="text/javascript" charset="utf-8" src="../dt/Editor-2.3.1/js/editor.bootstrap5.min.js"&gt;&lt;/script&gt;
        &lt;!-- datetime --&gt;
        &lt;script src="../js/moment-with-locales.js"&gt;&lt;/script&gt;
        &lt;script src="../js/datetime-moment.js"&gt;&lt;/script&gt;

        &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.9.0/js/standalone/selectize.js"&gt;&lt;/script&gt;
        &lt;script src="../js/editor.selectize.js"&gt;&lt;/script&gt;
</code></pre>

<p>Thanks,<br />
Jan</p>
]]>
        </description>
    </item>
    <item>
        <title>Simple Demo of Export Collection with Checks On Hover</title>
        <link>https://next.datatables.net/forums/discussion/78427/simple-demo-of-export-collection-with-checks-on-hover</link>
        <pubDate>Fri, 08 Mar 2024 04:52:41 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>chbocca</dc:creator>
        <guid isPermaLink="false">78427@/forums/discussions</guid>
        <description><![CDATA[<p>Continue to love the new checks in Button extension, thank you. Here is a simple <a rel="nofollow" href="https://charlesbalcony.com/demo/exportCollection.php" title="demo">demo</a> of putting copy and csv extensions into an Export button collection. Then, adding checks on hover. Uses latest dt 2.0.1 release. c</p>
]]>
        </description>
    </item>
    <item>
        <title>Simple Demo To Tone Down Select Color</title>
        <link>https://next.datatables.net/forums/discussion/78412/simple-demo-to-tone-down-select-color</link>
        <pubDate>Thu, 07 Mar 2024 16:35:35 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>chbocca</dc:creator>
        <guid isPermaLink="false">78412@/forums/discussions</guid>
        <description><![CDATA[<p>Here's <a rel="nofollow" href="https://charlesbalcony.com/demo/select_bcolor.php" title="link">link</a> to simple demo that employs a more subtle background and hover coloring (than the default) when using Select extension.</p>

<p>Was a little tricky, so thought I would share.</p>

<p>c</p>
]]>
        </description>
    </item>
    <item>
        <title>Simpe Demo To Add Checkmarks To Active Buttons In Collection</title>
        <link>https://next.datatables.net/forums/discussion/78406/simpe-demo-to-add-checkmarks-to-active-buttons-in-collection</link>
        <pubDate>Thu, 07 Mar 2024 05:22:07 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>chbocca</dc:creator>
        <guid isPermaLink="false">78406@/forums/discussions</guid>
        <description><![CDATA[<p>Love the new dt2.0 checkmarks depicting active elements in row length and column visibility properties.</p>

<p><a rel="nofollow" href="https://charlesbalcony.com/demo/collectionCheck.php" title="Here">Here</a> is simple demo showing how to add similar checkmarks to buttons in a collection.</p>

<p>c</p>
]]>
        </description>
    </item>
    <item>
        <title>Generator still not working correctly if pdfmake is selected</title>
        <link>https://next.datatables.net/forums/discussion/78362/generator-still-not-working-correctly-if-pdfmake-is-selected</link>
        <pubDate>Sun, 03 Mar 2024 16:31:31 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>Ficos</dc:creator>
        <guid isPermaLink="false">78362@/forums/discussions</guid>
        <description><![CDATA[<p>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:<a rel="nofollow" href="https://ficos.nl/testToDo/todo.html" title="https://ficos.nl/testToDo/todo.html"> </a><a rel="nofollow" href="https://ficos.nl/testToDo/todo.html">https://ficos.nl/testToDo/todo.html</a></p>

<p>Jan</p>
]]>
        </description>
    </item>
    <item>
        <title>Footer export issues</title>
        <link>https://next.datatables.net/forums/discussion/78352/footer-export-issues</link>
        <pubDate>Fri, 01 Mar 2024 01:49:58 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>kthorngren</dc:creator>
        <guid isPermaLink="false">78352@/forums/discussions</guid>
        <description><![CDATA[<p>First issue:</p>

<p>The Excel and PDF exports the footer but Copy, CSV and Print don't.  This can be seen with the <a rel="nofollow" href="https://datatables.net/extensions/buttons/examples/initialisation/simple.html">Basic Example</a>.  My understanding is the default is the footer is not included.</p>

<p>Second issue:</p>

<p>Exporting the <a rel="nofollow" href="https://datatables.net/examples/advanced_init/footer_callback.html">FooterCallback example</a> doesn't pickup the updated footer cells.  See this test case:<br />
<a rel="nofollow" href="https://live.datatables.net/sulehuso/1/edit">https://live.datatables.net/sulehuso/1/edit</a></p>

<p>Its using the buttons.html5.js nightly to pick up the Excel export footer fix in this <a rel="nofollow" href="https://datatables.net/forums/discussion/78306/excel-sheet-download-button-is-not-working#latest">thread</a>.</p>

<p><strong>Copy:</strong></p>

<pre><code>Zenaida Frank   Software Engineer   New York    $125,250
Zorita  Serrano Software Engineer   San Francisco   $115,000Total:              undefined
</code></pre>

<p>The footer is on the same line as the last row.  The <code>Total</code> cell looks like is far left.</p>

<p><strong>Excel:</strong></p>

<p><img src="https://datatables.net/forums/uploads/editor/bo/d23lk6uyncxj.png" alt="" title="" /></p>

<p>The Total is not shown in the correct cell.  Its possible this is due to using Numbers on the Mac instead of Excel.</p>

<p><strong>CSV:</strong></p>

<pre><code>"Zenaida","Frank","Software Engineer","New York","$125,250"
"Zorita","Serrano","Software Engineer","San Francisco","$115,000""Total:","","","","undefined"
</code></pre>

<p>Same as Copy the footer is on the same line as the last row.  The <code>Total</code> is in the first cell not the 5th.</p>

<p><strong>PDF:</strong></p>

<p><img src="https://datatables.net/forums/uploads/editor/yk/manfmnqqpqa6.png" alt="" title="" /></p>

<p>The Total looks like it is in the wrong column.</p>

<p><strong>Print:</strong></p>

<p><img src="https://datatables.net/forums/uploads/editor/6n/bgdit0kfk47v.png" alt="" title="" /></p>

<p>Kevin</p>
]]>
        </description>
    </item>
    <item>
        <title>Single button to hide 1 column while making another column visible.</title>
        <link>https://next.datatables.net/forums/discussion/77860/single-button-to-hide-1-column-while-making-another-column-visible</link>
        <pubDate>Thu, 21 Dec 2023 17:34:23 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>Larry27</dc:creator>
        <guid isPermaLink="false">77860@/forums/discussions</guid>
        <description><![CDATA[<p>Hi,</p>

<p>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 am trying to keep the number of columns visible at any one time limited to keep the users attention focused.  For example, if a user clicks on the 'Payroll' button, I don't want them to also see the 'Debt' or the 'Contracts column'</p>

<p>This is my code, which works fine.  I just need the code to hide some of the other columns.</p>

<p>Thanks,</p>

<p>Larry</p>

<pre><code>buttons: [

    {
        extend: 'columnVisibility',
        text: 'Payroll',        
        visibility: true,
        columns: '8'
    },
    {
        extend: 'columnVisibility',
        text: 'Debt',
        visibility: true,
        columns: '9,14'
    },
    {
        extend: 'columnDefs',
        text: 'Contracts',
        visibility: true,           
        columns: '11'           
    }
</code></pre>

<p>]</p>
]]>
        </description>
    </item>
    <item>
        <title>Export single row to custom pdf</title>
        <link>https://next.datatables.net/forums/discussion/77827/export-single-row-to-custom-pdf</link>
        <pubDate>Sun, 17 Dec 2023 14:18:15 +0000</pubDate>
        <category>Buttons</category>
        <dc:creator>carrarachristophe</dc:creator>
        <guid isPermaLink="false">77827@/forums/discussions</guid>
        <description><![CDATA[<p>Hello,<br />
Using <a rel="nofollow" href="https://datatables.net/extensions/buttons/examples/" title="buttons">buttons</a>, I am able to export the data of 1 or several rows in several formats, but it exports a table.<br />
What I am trying to do is exporting the data of a single row of the datatable into a custom pdf document.<br />
For example, selecting a row of a datatable listing invoices, I would like to generate an invoice in pdf containing all the data related to the selected row, but in a specific design.<br />
I don't find any example of anything close to that, although I find that need quite common.<br />
Does anybody work on that direction?</p>
]]>
        </description>
    </item>
   </channel>
</rss>
