<?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>Extensions — DataTables forums</title>
        <link>https://next.datatables.net/forums/</link>
        <pubDate>Wed, 22 Jul 2026 01:33:46 +0000</pubDate>
        <language>en</language>
            <description>Extensions — DataTables forums</description>
    <language>en</language>
    <atom:link href="https://next.datatables.net/forums/categories/extensions/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Extension install docs should include layout</title>
        <link>https://next.datatables.net/forums/discussion/79007/extension-install-docs-should-include-layout</link>
        <pubDate>Tue, 14 May 2024 14:25:41 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>kthorngren</dc:creator>
        <guid isPermaLink="false">79007@/forums/discussions</guid>
        <description><![CDATA[<p>The install docs for Buttons, SearchBuilder, SearchPanes and StateRestore should include the <a rel="nofollow" href="//datatables.net/reference/option/layout"><code title="DataTables initialisation option">layout</code></a> option.</p>

<p>Kevin</p>
]]>
        </description>
    </item>
    <item>
        <title>Editor with autocomplete column - issue when user select an item by clicking it</title>
        <link>https://next.datatables.net/forums/discussion/77981/editor-with-autocomplete-column-issue-when-user-select-an-item-by-clicking-it</link>
        <pubDate>Mon, 15 Jan 2024 09:18:42 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>Infolabs</dc:creator>
        <guid isPermaLink="false">77981@/forums/discussions</guid>
        <description><![CDATA[<p>Hello,<br />
i'm using inline editing with autocomplete.<br />
All works fine, except when the user select an item in the autocomplete dropdown menu.<br />
In this case the resulting value (in the cell) when inline editor closes is the partial text the user have typed to find elements.</p>

<p>I'm using following versions:<br />
datatables 1.10.25<br />
editor 2.0.4<br />
jQuery UI - v1.12.1</p>

<p>Any suggestion? Thanks!</p>
]]>
        </description>
    </item>
    <item>
        <title>DateTime examples aren't loading</title>
        <link>https://next.datatables.net/forums/discussion/77819/datetime-examples-arent-loading</link>
        <pubDate>Fri, 15 Dec 2023 12:11:59 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>kthorngren</dc:creator>
        <guid isPermaLink="false">77819@/forums/discussions</guid>
        <description><![CDATA[<p>Just tried a few of them, like the <a rel="nofollow" href="https://datatables.net/extensions/datetime/examples/initialisation/simple.html">Basic example</a>, and they are getting this error:</p>

<blockquote>
  <p>Uncaught TypeError: $(...).addClass(...).dataTable is not a function</p>
</blockquote>

<p>Kevin</p>
]]>
        </description>
    </item>
    <item>
        <title>Using TypeScript and RowGroup extension, interface extensions aren't working</title>
        <link>https://next.datatables.net/forums/discussion/77293/using-typescript-and-rowgroup-extension-interface-extensions-arent-working</link>
        <pubDate>Wed, 04 Oct 2023 21:46:49 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>rycwilson</dc:creator>
        <guid isPermaLink="false">77293@/forums/discussions</guid>
        <description><![CDATA[<p>I have been using datatables for a while, but I'm relatively new to TypeScript and am struggling to make use of some interface definitions/extensions.</p>

<p>I have installed packages <code>datatables.net-bs</code> and <code>datatables.net-rowgroup-bs</code> (yes, it's an old project using bootstrap3).</p>

<p>I am importing like so:</p>

<pre><code>import DataTable from 'datatables.net-bs';
import type { Config, Api } from 'datatables.net-bs';
</code></pre>

<p>This works fine for annotating the return value of <code>new DataTable(...)</code> and a function that returns some configuration options. For example (all this resides in a Stimulus controller class):</p>

<pre><code>// class member:
declare dt: Api&lt;any&gt;
...
// method asynchronously initializes the table:
readyValueChanged(dataIsReady: boolean) {
  if (dataIsReady) this.dt = new DataTable(this.element, this.baseOptions)
}
...
get baseOptions(): Config {
  return { ... }
}
</code></pre>

<p>Now I want to work with the RowGroup extension. Along with the above imports, I add:<br />
<code>import 'datatables.net-rowgroup-bs';</code></p>

<p>However, TypeScript flags <code>this.dt.rowGroup()</code> and says "rowGroup does not exist on type Api&lt;any&gt;". It similarly complains when I add a <code>rowGroup</code> property to the options object.</p>

<p>I see that <code>node_modules/datatables.net-rowgroup-bs/types/types.d.ts</code> is an empty file, however <code>node_modules/datatables.net-rowgroup/types/types.d.ts</code> has the necessary declaration merge (or extension). Whether I import <code>datatables.net-rowgroup</code> or <code>datatables.net-rowgroup-bs</code>, the declaration merge just doesn't seem to happen. Do I need to declare a module, or ... something?</p>

<p>I should also mention... I'm not bothering with <a href="https://next.datatables.net/forums/profile/types" rel="nofollow">@types</a> definitions, as my assumption is that the official type definitions are sufficient and I'm trying to keep things as simple as possible.</p>

<p>Like I said, I'm a TypeScript newb, so hopefully I'm just doing something dumb. I'd be grateful for any tips.</p>

<p>Thanks!</p>
]]>
        </description>
    </item>
    <item>
        <title>The label and display for a read only display plug-in are not aligned</title>
        <link>https://next.datatables.net/forums/discussion/77165/the-label-and-display-for-a-read-only-display-plug-in-are-not-aligned</link>
        <pubDate>Wed, 13 Sep 2023 20:42:19 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>mike92117</dc:creator>
        <guid isPermaLink="false">77165@/forums/discussions</guid>
        <description><![CDATA[<p>How can I make the NTU value and label align? I'm using the "read only display" plug-in described in the docs. See screenshot.<img src="https://datatables.net/forums/uploads/editor/cd/rx5pdg1t4g7o.png" alt="" title="" /></p>

<p><code>dataType: 'json',</code>
<code>fields: [{</code>
<code>label: "Name",</code>
<code>name: "Name"</code>
<code>}, {</code>
<code>label: "NTU",</code>
<code>name: "NTU",</code>
<code>type: "display"</code>
<code>}, {</code>
<code>label: "DPic",</code>
<code>name: "DPic"</code>
<code>}, {</code>
</p>
]]>
        </description>
    </item>
    <item>
        <title>How to get cell text and display on tr rowGroup?</title>
        <link>https://next.datatables.net/forums/discussion/75206/how-to-get-cell-text-and-display-on-tr-rowgroup</link>
        <pubDate>Tue, 24 Jan 2023 09:52:54 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>info@i-it.se</dc:creator>
        <guid isPermaLink="false">75206@/forums/discussions</guid>
        <description><![CDATA[<p>I'm using rowGroup and the text on the rowgroup is the dataSrc. How can i add more cell data to the tr header? For example how can i get the cell text from the first row in the group and then print it on the rowgroup tr along with the dataSrc text?</p>
]]>
        </description>
    </item>
    <item>
        <title>i want to make a rebuild searchpanes and a rebuild datables after duplicate records</title>
        <link>https://next.datatables.net/forums/discussion/74948/i-want-to-make-a-rebuild-searchpanes-and-a-rebuild-datables-after-duplicate-records</link>
        <pubDate>Tue, 20 Dec 2022 13:59:54 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>jmclamen</dc:creator>
        <guid isPermaLink="false">74948@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>:<br />
<strong>Debugger code (debug.datatables.net)</strong>:<br />
<strong>Error messages shown</strong>:<br />
<strong>Description of problem</strong>:</p>

<p>how rebuild the seachpanel and datatables after duplicate record for update table and seachpanel.</p>

<p>today, i reload the page and i make a new filter with searchPanes</p>

<p>my code :</p>

<pre><code> {
                extend: "selected",
                text: 'Duplicate',
                action: function ( e, dt, node, config ) {
                    // Start in edit mode, and then change to create
                    editor
                        .edit( table.rows( {selected: true} ).indexes(), {
                            title: 'Duplicate record',
                            buttons: 'Créer depuis existant'
            
                        })
                        .mode( 'create' ).set("id","");
            
                        
                }
            }
</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>Update initialized datatable configs</title>
        <link>https://next.datatables.net/forums/discussion/74345/update-initialized-datatable-configs</link>
        <pubDate>Thu, 13 Oct 2022 07:49:35 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>Red Sniper</dc:creator>
        <guid isPermaLink="false">74345@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Description of problem</strong>:<br />
Sorry for not providing a test case, will do if necessary.</p>

<p>Problem:<br />
I have a datatable with a lot of columns (24) and I cannot display all of them at the same time.<br />
I thought to add some buttons that would automatically hide/show some of these columns, depending on some criteria.<br />
Some of these columns are editable too, and I use dts' options such as <a rel="nofollow" href="//datatables.net/reference/option/keys.editor"><code title="DataTables initialisation option">keys.editor</code></a> , <a rel="nofollow" href="//datatables.net/reference/option/keys.editOnFocus"><code title="DataTables initialisation option">keys.editOnFocus</code></a> and <a rel="nofollow" href="//datatables.net/reference/option/keys.columns"><code title="DataTables initialisation option">keys.columns</code></a> to trigger editing when I click on a specific cell of an editable column.</p>

<p>Question:<br />
Since the editable columns specified in <a rel="nofollow" href="//datatables.net/reference/option/keys.columns"><code title="DataTables initialisation option">keys.columns</code></a> do change of position (both using an array of indexes or css selectors) when I hide/show em, is there a way to update this option when I change the displayed columns? otherwise editor logs the error 'Uncaught Unable to automatically determine field from source.' if I click on a cell's column that was supposed to be editable (and after the view changes there is one that is not editable)</p>

<p>Thanks for the help!</p>
]]>
        </description>
    </item>
    <item>
        <title>?ColumnFilterWidgets: Numeric sorting via options?</title>
        <link>https://next.datatables.net/forums/discussion/73653/columnfilterwidgets-numeric-sorting-via-options</link>
        <pubDate>Tue, 09 Aug 2022 10:07:38 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>stl99</dc:creator>
        <guid isPermaLink="false">73653@/forums/discussions</guid>
        <description><![CDATA[<p>Hi,</p>

<p>I'm using DataTables and ColumnFilterWidgets via the popular WordPress plugin TablePress. I need numeric sorting for the values in a specific filter dropdown which needs be set via the regular DataTables functions.</p>

<p>The WordPress plugin supports adding customizations such as "columnDefs": [ { "orderable": false, "targets": [ 4, 7, 8, 9, 10 ] } ]. Unfortunately, I'm struggling to find a solution to list the dropdown values numerically. Any advice would be highly appreciated.</p>

<p>Best,<br />
Thomas</p>
]]>
        </description>
    </item>
    <item>
        <title>RowGroup: Multi-level grouping</title>
        <link>https://next.datatables.net/forums/discussion/72215/rowgroup-multi-level-grouping</link>
        <pubDate>Thu, 31 Mar 2022 06:51:36 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>ReneRam</dc:creator>
        <guid isPermaLink="false">72215@/forums/discussions</guid>
        <description><![CDATA[<p>I need help to achieve the following groping result:</p>

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

<p>I need to put the icon of the command in the same line of the grouping item (all the icons have the same value!)</p>

<p>Following is my code</p>

<pre><code>    &lt;div class="table-responsive"&gt;
        &lt;table id="anagraficaMedici" class="table table-striped table-bordered" style="width: 100%"&gt;
        &lt;/table&gt;
   &lt;/div&gt;
</code></pre>

<p>and the javascript:</p>

<pre><code>        $("#anagraficaMedici").DataTable({
            'destroy': true,
            'dataType': 'json',
            'dataSrc': 'data',
            'responsive': true,
            "ajax": urlapp + "/api/anagraficafull/" + $('#&lt;%=mid.ClientID%&gt;').val(),
            order: [0, 'asc'],
            rowGroup: {
                dataSrc: ['nominativo']
            },
            'columns': [
                { data: 'nominativo' },
                { data: 'nomestruttura' },
                { data: 'idanagrafica' }
            ],
            "columnDefs": [
                {
                    targets: [0],
                    visible: false
                },
                {
                    "targets": [2],
                    "orderable": false,
                    "render": function (data, type, full, meta) {
                        return '&lt;a href="' + editp + data + ' "&gt;&lt;ion-icon name="create-outline" size="large"&gt;&lt;/ion-icon&gt;&lt;/a&gt;';
                    }
                }],
            dom: "Bfrtip",
            buttons: [
                {
                    extend: "copy",
                    className: "btn-sm"
                },
                {
                    extend: "csv",
                    className: "btn-sm"
                },
                {
                    extend: "excel",
                    className: "btn-sm"
                },
                {
                    extend: "pdfHtml5",
                    className: "btn-sm"
                },
                {
                    extend: "print",
                    className: "btn-sm"
                },
            ],
        });
</code></pre>

<p>I guest I should change something in the <strong>rowGroup</strong> section, but whatever I try I crash the grouping.</p>

<p>Thanks for any suggestion/help</p>

<p>René</p>
]]>
        </description>
    </item>
    <item>
        <title>Displaying sum and average of columns for visible row?</title>
        <link>https://next.datatables.net/forums/discussion/71859/displaying-sum-and-average-of-columns-for-visible-row</link>
        <pubDate>Mon, 28 Feb 2022 11:51:11 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>datal0ver</dc:creator>
        <guid isPermaLink="false">71859@/forums/discussions</guid>
        <description><![CDATA[<p>Hi,</p>

<p>First of all, thanks for this amazing library. I'm not exactly new to DataTables but so far have only done crude customization to it, as in not using extension or plug-in mechanism. I'm wondering, aside from RowGroup [1], is there another extension or plugin that is suitable to adding sum and average footer rows (for values in visible rows)?</p>

<p>[1] <a rel="nofollow" href="https://datatables.net/extensions/rowgroup">https://datatables.net/extensions/rowgroup</a></p>
]]>
        </description>
    </item>
    <item>
        <title>How to get checked row data only</title>
        <link>https://next.datatables.net/forums/discussion/71782/how-to-get-checked-row-data-only</link>
        <pubDate>Tue, 22 Feb 2022 10:39:19 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>Flash223</dc:creator>
        <guid isPermaLink="false">71782@/forums/discussions</guid>
        <description><![CDATA[<p>im using gyrocode checkbox extension and format to write my code</p>

<pre><code>$(document).ready(function () {
    var table = $("#example").DataTable({
        "responsive": true,
        "ajax": {
            "url": "/Products/Getall",
            "type": "GET",
            "datatype": "json",
            dataSrc: ""
        },
        'columnDefs': [
            {
                "targets": 0,
                "orderable": false,
                'checkboxes': {
                    'selectRow': true
                }

            },
        ],
        'select': {
            'style': 'multi'
        },
        "columns": [
            {
                "defaultContent": ''
            },
            {
                "data": "productId", "visible": false
            },
            {
                "data": "names"
            },
            {
                "data": null,
                "render": function (data, type, row) {
                    if (row["description"] == null) {
                        return "No Description"
                    }
                    return row["description"];
                }
            },
            {
                "data": "quantity"
            },
            {
                "data": null,
                "render": function (data, type, row) {
                    if (row["price"] == null) {
                        return "Rp. " + 0
                    }
                    return "Rp." + row["price"];
                }
            },
        ]
    });

    // Handle form submission event
    $('#frm-example').on('submit', function (e) {
        var form = this;

        var rows_selected = table.rows({ selected: true }).data();
        console.log(rows_selected)
       e.preventDefault();

    });
});

</code></pre>

<p>i change the rows_selected code to fit my code but when i check one row and press submit<br />
<img src="https://datatables.net/forums/uploads/editor/xt/ln4m33dambwh.png" alt="" title="" /><br />
i got all the row<br />
<img src="https://datatables.net/forums/uploads/editor/g1/r8dtxnmqariu.png" alt="" title="" /></p>

<p>this is the data that I use in data table</p>

<pre><code>Array(3)
0:
cartDetails: null
category: "Food"
description: "asd"
imagesNum: 0
names: "bean bag"
price: 100
productId: 3
quantity: 100
[[Prototype]]: Object
1: {productId: 4, quantity: 12, imagesNum: 0, category: 'Another', description: 'asd', …}
2: {productId: 5, quantity: 12, imagesNum: 0, category: 'Another', description: 'asd', …}
length: 3
[[Prototype]]: Array(0)
</code></pre>

<p>how can I get the data checked?</p>
]]>
        </description>
    </item>
    <item>
        <title>How to Customize All PDF exports Without Duplicating the customize property</title>
        <link>https://next.datatables.net/forums/discussion/71749/how-to-customize-all-pdf-exports-without-duplicating-the-customize-property</link>
        <pubDate>Sat, 19 Feb 2022 06:37:19 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>TumeloM</dc:creator>
        <guid isPermaLink="false">71749@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>:<br />
<strong>Debugger code (debug.datatables.net)</strong>:<br />
<strong>Error messages shown</strong>:<br />
<strong>Description of problem</strong>:</p>

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

<p>I want all pdf exports to used the custom header without having to duplicate the code in all datatable initialization. Here is the test case <a rel="nofollow" href="http://live.datatables.net/qabenajo/3/edit" title="live.datatables.net/qabenajo/3/edit">live.datatables.net/qabenajo/3/edit</a></p>

<p>i tried to default the pdf customization but when i add other properties like title, it removes the default<br />
<img src="https://datatables.net/forums/uploads/editor/eq/ehm6bayk99lq.png" alt="" title="" /></p>
]]>
        </description>
    </item>
    <item>
        <title>I no longer know which extensions are being used by the CDN.</title>
        <link>https://next.datatables.net/forums/discussion/71598/i-no-longer-know-which-extensions-are-being-used-by-the-cdn</link>
        <pubDate>Thu, 10 Feb 2022 13:01:01 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>portnoy</dc:creator>
        <guid isPermaLink="false">71598@/forums/discussions</guid>
        <description><![CDATA[<p>I can't figure out which extension is being used by the CDN.</p>

<p>Here are the data tables I am using and their extensions.<br />
I selected something from this page (<a rel="nofollow" href="https://datatables.net/download/)">https://datatables.net/download/)</a> and<br />
I forgot to write it down and now I don't know which extension is being used.</p>

<p>Can you please tell me which extension this uses? Or how can I check?</p>
]]>
        </description>
    </item>
    <item>
        <title>State restore has a new release but buttons does not ?</title>
        <link>https://next.datatables.net/forums/discussion/71227/state-restore-has-a-new-release-but-buttons-does-not</link>
        <pubDate>Wed, 12 Jan 2022 19:39:27 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>desperado</dc:creator>
        <guid isPermaLink="false">71227@/forums/discussions</guid>
        <description><![CDATA[<p>I have worked with <a href="https://next.datatables.net/forums/profile/sandy" rel="nofollow">@sandy</a> on several issues and they required I use StateRestore and Buttons from the nightly build.</p>

<p>Now I see that StateRestore has been updated from 1.0.1 to 1.1.0 but buttons remains at 2.1.1.</p>

<p>So I think StateRestore features will still have some issues if I use the old buttons, correct?</p>

<p>Will Buttons be updated some time soon?</p>

<p>Side Question<br />
Is there a way to register to be notified when DataTables and extensions are updated ?</p>
]]>
        </description>
    </item>
    <item>
        <title>StateRestore savedStates button display active state counter</title>
        <link>https://next.datatables.net/forums/discussion/71144/staterestore-savedstates-button-display-active-state-counter</link>
        <pubDate>Tue, 04 Jan 2022 19:35:52 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>ctml</dc:creator>
        <guid isPermaLink="false">71144@/forums/discussions</guid>
        <description><![CDATA[<p>Not an issue but rather a small feature request. It would be a nice option to have the d% token available for the savedStates button to represent the current number of active states. Similar to the stateRestore button which supports it but instead represents the total number of states available. This would be in line with the other buttons (e.g. searchPanes) which allow for the place holder to be inserted when filters are added.</p>

<p><a rel="nofollow" href="https://datatables.net/reference/option/language.buttons.savedStates">https://datatables.net/reference/option/language.buttons.savedStates</a></p>

<p><a rel="nofollow" href="https://datatables.net/reference/option/language.buttons.stateRestore">https://datatables.net/reference/option/language.buttons.stateRestore</a></p>

<p>There is an example showing the use of a label, but for consistency purposes with the other buttons my preference would be to show a counter on the button. I'm using savedStatesCreate in my case.</p>

<p><a rel="nofollow" href="https://datatables.net/extensions/staterestore/examples/customisation/activeLabel.html">https://datatables.net/extensions/staterestore/examples/customisation/activeLabel.html</a></p>

<p>PS: This is a fantastic extension that opens up a lot of possibilities for end users, absolutely love it. <img src="https://next.datatables.net/forums/resources/emoji/smile.png" title=":)" alt=":)" height="20" /><br />
Also there is no category on the forum under extensions for "State Restore" yet.</p>
]]>
        </description>
    </item>
    <item>
        <title>When adding a button to a secondary split menu, how do you drop the menu on action?</title>
        <link>https://next.datatables.net/forums/discussion/71088/when-adding-a-button-to-a-secondary-split-menu-how-do-you-drop-the-menu-on-action</link>
        <pubDate>Wed, 29 Dec 2021 17:31:36 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>desperado</dc:creator>
        <guid isPermaLink="false">71088@/forums/discussions</guid>
        <description><![CDATA[<p>This is issue <a rel="nofollow" href="https://next.datatables.net/forums/search?Search=%232&amp;Mode=like"></a><a rel="nofollow" href="https://next.datatables.net/forums/search?Search=%232&amp;Mode=like">#2</a> I am having with the StateRestore split menu.<br />
How do you drop the menu when your action is called?</p>

<p>Test Case <a rel="nofollow" href="http://live.datatables.net/nebunuco/2/edit?js,output">http://live.datatables.net/nebunuco/2/edit?js,output</a><br />
1) Create a Saved State<br />
2) Open the Saved States menu then open the secondary menu and select "test"<br />
3) The function correctly writes to the console as expected but I don't now how to lower the secondary menu in my function.<br />
(See Question <a rel="nofollow" href="https://next.datatables.net/forums/search?Search=%231&amp;Mode=like"></a><a rel="nofollow" href="https://next.datatables.net/forums/search?Search=%231&amp;Mode=like">#1</a> in the example.)</p>
]]>
        </description>
    </item>
    <item>
        <title>Is it possible to add a button to the StateRestore Actions?</title>
        <link>https://next.datatables.net/forums/discussion/70943/is-it-possible-to-add-a-button-to-the-staterestore-actions</link>
        <pubDate>Tue, 14 Dec 2021 19:15:05 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>desperado</dc:creator>
        <guid isPermaLink="false">70943@/forums/discussions</guid>
        <description><![CDATA[<p>My users have requested an interesting feature.   They would like to be able to make one of their saved states public so everyone who has access to the page can use the state they created.</p>

<p>I would ideally like to add this feature by having an extra button along with "Update, Rename, Remove" that will toggle between "Make Public" and "Make Private", separate buttons named the same could also work.   I intend to mark public states by altering their name, for example adding * in front of the name to indicate it is a public state.   I also intend to have the ajax save to only allow the original author to save.   So if there could be a function to get the label for the given namedState it could easily return the two labels based on the name alone.</p>

<p>We considered just implementing that if the name starts with * then it's public but that would make it sort of a "hidden" feature so adding button(s) would be ideal.</p>

<p>I could just add a button on the page which says "Make current State Public" but since there can be multiple current states that is a little less elegant.</p>

<p>I could also have a button "Create Public State" and relabel the "Create State" to "Create Private State".   So the ability to add buttons to the savedStatesCreate menu could be yet another option.</p>
]]>
        </description>
    </item>
    <item>
        <title>When creating button in StateRestore SecondarySplit is it possible to know which state button is for</title>
        <link>https://next.datatables.net/forums/discussion/71089/when-creating-button-in-staterestore-secondarysplit-is-it-possible-to-know-which-state-button-is-for</link>
        <pubDate>Wed, 29 Dec 2021 17:39:33 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>desperado</dc:creator>
        <guid isPermaLink="false">71089@/forums/discussions</guid>
        <description><![CDATA[<p>This is my third (and hopefully last) issue <img src="https://next.datatables.net/forums/resources/emoji/smile.png" title=":smile:" alt=":smile:" height="20" /></p>

<p>Test Case: <a rel="nofollow" href="http://live.datatables.net/piqeheyu/1/edit?js,output">http://live.datatables.net/piqeheyu/1/edit?js,output</a></p>

<p>See comment in test case, trying to get access to the Saved State ID when creating the Secondary Split button.<br />
I have a use case where I would like to change the label based on a certain state of the specific "Saved State".<br />
I have the code to check for the condition but I don't have access to the correct StateId to make it work.</p>
]]>
        </description>
    </item>
    <item>
        <title>State Restore create fails after first state when splitSecondaries is used</title>
        <link>https://next.datatables.net/forums/discussion/71087/state-restore-create-fails-after-first-state-when-splitsecondaries-is-used</link>
        <pubDate>Wed, 29 Dec 2021 17:03:59 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>desperado</dc:creator>
        <guid isPermaLink="false">71087@/forums/discussions</guid>
        <description><![CDATA[<p>I am having several issues trying to implement the splitSecondary feature on the StateRestore button.  I am going to post them one at a time so the threads are less confusing.  This is my first issue.</p>

<p>When I add a button to the State Restore Dropdown only 1 state saves after that nothing happens when I select "Create State".</p>

<p>In this example, select "Create State" and notice that "State 1" is created.<br />
Then select it again and nothing happens.</p>

<p><a rel="nofollow" href="http://live.datatables.net/nebunuco/1/edit?js,output">http://live.datatables.net/nebunuco/1/edit?js,output</a></p>

<p>If you remove the splitSecondary configuration the problem goes away.</p>
]]>
        </description>
    </item>
    <item>
        <title>How to we prevent StateRestore from adding state to the list if ajax call to save fails ?</title>
        <link>https://next.datatables.net/forums/discussion/70974/how-to-we-prevent-staterestore-from-adding-state-to-the-list-if-ajax-call-to-save-fails</link>
        <pubDate>Fri, 17 Dec 2021 22:17:50 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>desperado</dc:creator>
        <guid isPermaLink="false">70974@/forums/discussions</guid>
        <description><![CDATA[<p>I am working on code based on this example.<br />
<a rel="nofollow" href="https://datatables.net/extensions/staterestore/examples/initialisation/ajaxFunction.html">https://datatables.net/extensions/staterestore/examples/initialisation/ajaxFunction.html</a></p>

<p>At first my ajax call was failing with a authentication error but I noticed that the state still gets added to the list of states.<br />
Of course on reload it's gone because nothing was saved.</p>

<p>But how to I report to the user that the save state failed and prevent the dropdown from adding the state?</p>

<p>It seems there should be a callback to stateRestore to inform it if the save state was successful or not.</p>
]]>
        </description>
    </item>
    <item>
        <title>StateRestore calls save for every state upon load, is that a bug or a feature?</title>
        <link>https://next.datatables.net/forums/discussion/70995/staterestore-calls-save-for-every-state-upon-load-is-that-a-bug-or-a-feature</link>
        <pubDate>Tue, 21 Dec 2021 18:20:03 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>desperado</dc:creator>
        <guid isPermaLink="false">70995@/forums/discussions</guid>
        <description><![CDATA[<p>I have implemented the ajax function method of loading and save/rename/update.</p>

<p>When I load a page that has a DataTable with 10 saved states I get a call to load as expected and then I get 10 calls to save upon calling the callback to load the data into stateRestore.</p>

<p>I don't see how this could be a "feature" so I suspect it is a bug.  I am able to fix by setting a boolean to true prior to my call to callback(cbData) in load and then checking for that boolean on save and ignoring the request.   But I thought I would ask this questions for 2 reasons.   1) Perhaps there is a good reason for this and I should NOT ignore the calls, 2) If it is a bug it can be addressed.</p>

<p>In case anyone else wants to avoid this load here is how I implemented my solution</p>

<pre><code>let _stateRestoreBlockSaveOnLoad = false;
...
if (data.action === 'load') {
            let url = _rcoiBaseUrl + "dataTablesView/getViews/" + _dataTableViewStoreDataTableId;
            $.get(url,function (data,status) {
                let cbData = {};
                for (let i = 0; i &lt; data.length; i++) {
                    // Convert back from the string created when saving
                    cbData[data[i].identifier] = JSON.parse(data[i].state);
                }
                // Load states into StateRestore
                console.log("starting callback");
                // Set Block on Save to true so saves can be skipped when loading data
                _stateRestoreBlockSaveOnLoad = true;
                callback(cbData);
                // Unset the Save Block since loading is complete
                _stateRestoreBlockSaveOnLoad = false;
                console.log("Finished callback")
            });
        } else if (data.action === 'save') {
            // Check if we are loading initial states and ignore calls to save
            if (_stateRestoreBlockSaveOnLoad) {
                // Fix issue with stateRestore calling save for every State when loading
                console.log("Blocked Save on Load from State Restore")
                return;
            }
            let ids = Object.keys(data.stateRestore);
            for (let i = 0; i &lt; ids.length; i++) {
                // Add all of the states listed in the object
                let url = _rcoiBaseUrl + "dataTablesView/saveView";
                let viewId=ids[i];
                let viewData=JSON.stringify(data.stateRestore[ids[i]]);
                let _viewSaveRequestData = {
                    'viewId': viewId,
                    'viewData': viewData,
                    'dataTableId': _dataTableViewStoreDataTableId
                };
                // This allows the post to pass the security token verification
                // without this data you will get a 401 error
                _viewSaveRequestData[_csrf_param_name] = _csrf_token; // Adds the token
                console.log("Saving");
                $.post(url,_viewSaveRequestData,ajaxSaveCompleted);
            }
...
</code></pre>
]]>
        </description>
    </item>
    <item>
        <title>How does State Restore order State names ?</title>
        <link>https://next.datatables.net/forums/discussion/70985/how-does-state-restore-order-state-names</link>
        <pubDate>Mon, 20 Dec 2021 20:43:22 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>desperado</dc:creator>
        <guid isPermaLink="false">70985@/forums/discussions</guid>
        <description><![CDATA[<p>Is it possible to get state restore to sort the states by name ?</p>

<p>my code puts the data into the map in order but this is an example of the result I get using testing names.</p>

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

<p>I would like ZZ Name to be last as it was when returned from my ajax call.</p>

<p>When I add a new state named "AB Name" I would like it to insert after "AA Name" but instead I get it inserted second to last which seems odd, last I could understand.<br />
<img src="https://datatables.net/forums/uploads/editor/g0/u080b9zsm7zg.png" alt="" title="" /></p>

<p>Then when I reload the page I get the following order.<br />
<img src="https://datatables.net/forums/uploads/editor/f2/5f7o2vjq6b9e.png" alt="" title="" /></p>

<p>For some reason "View 1" is stuck at the bottom no matter what I do.</p>
]]>
        </description>
    </item>
    <item>
        <title>StateRestore long names cut off</title>
        <link>https://next.datatables.net/forums/discussion/70922/staterestore-long-names-cut-off</link>
        <pubDate>Mon, 13 Dec 2021 20:23:15 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>desperado</dc:creator>
        <guid isPermaLink="false">70922@/forums/discussions</guid>
        <description><![CDATA[<p>Two suggestions<br />
1) State Restore truncates longer Saved State Names and adds ...<br />
It would be nice if the full string was displayed on hover.<br />
<a rel="nofollow" href="https://jsfiddle.net/gouldner/m1yjs6bp/">https://jsfiddle.net/gouldner/m1yjs6bp/</a></p>

<p>2) StateRestore needs a forum category under extentions <img src="https://next.datatables.net/forums/resources/emoji/smile.png" title=":smile:" alt=":smile:" height="20" /></p>
]]>
        </description>
    </item>
    <item>
        <title>How to add a "Reset View" when using State Restore and Search Builder</title>
        <link>https://next.datatables.net/forums/discussion/70892/how-to-add-a-reset-view-when-using-state-restore-and-search-builder</link>
        <pubDate>Thu, 09 Dec 2021 19:25:27 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>desperado</dc:creator>
        <guid isPermaLink="false">70892@/forums/discussions</guid>
        <description><![CDATA[<p>Before I added State Restore and Search Builder to my application I had implemented a "Reset View" in Buttons which did the following.</p>

<pre><code>            {
                text: 'Reset View',
                action: function ( e, dt, node, config ) {
                    var table = $('#reviews-table').DataTable();
                    table.state.clear();
                    window.location.reload();
                }
            }
</code></pre>

<p>After implementing these extensions table.state.clear() no longer works.</p>

<p>Neither Search Builder nor State Restore provide a clear() method.</p>

<p>I need to have a "Reset View" in my application to return the DataTable to its initial state.<br />
This needs to include returning the column visibility, sort column(s), Search Builder cleared and unset any selected view from resetView.</p>

<p>Currently I have State Restore configured with saving sort disabled because I don't like the fact that once a state is selected if you change your sorting it removes the "Active State" so the user no longer realizes they have other things changed.  I am on the fence about this but I mention it because somehow saving the initial state into State Restore will not solve my issue as it will NOT restore the default sorting.</p>
]]>
        </description>
    </item>
    <item>
        <title>stateRestore,stateSave,searchBuilder integration, should stateSave still work?</title>
        <link>https://next.datatables.net/forums/discussion/70894/staterestore-statesave-searchbuilder-integration-should-statesave-still-work</link>
        <pubDate>Thu, 09 Dec 2021 20:43:30 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>desperado</dc:creator>
        <guid isPermaLink="false">70894@/forums/discussions</guid>
        <description><![CDATA[<p>Here is my test case:<a rel="nofollow" href="http://live.datatables.net/wacajoso/2/edit">http://live.datatables.net/wacajoso/2/edit</a></p>

<p>My project originally started just using stateSave and it worked fine.<br />
I added stateRestore and stateSave still works<br />
I then added searchBuilder and I can not get the dashboard to return to the previous state.<br />
At random times I thought I saw it working but I can not figure out when.</p>

<p>Should stateSave still work when stateRestore and searchBuilder are being used?</p>
]]>
        </description>
    </item>
    <item>
        <title>Hello, I'm looking for a extension...</title>
        <link>https://next.datatables.net/forums/discussion/70125/hello-im-looking-for-a-extension</link>
        <pubDate>Tue, 05 Oct 2021 07:01:06 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>Raphu</dc:creator>
        <guid isPermaLink="false">70125@/forums/discussions</guid>
        <description><![CDATA[<p>Hello everyone, I'm looking for an extension that would allow me to create a custom view of my table rows. which would allow me to have a table display and a box display. I know that you have the possibility to make your tables responsive but in this case it's not enough.<br />
I found an example from one of your "competitors", I post the link to make my question clear: <a rel="nofollow" href="https://live.bootstrap-table.com/example/extensions/custom-view.html">https://live.bootstrap-table.com/example/extensions/custom-view.html</a></p>

<p>1000 Thanks.<br />
Sorry for my english (google translation)</p>
]]>
        </description>
    </item>
    <item>
        <title>papa parse - to dynamic table</title>
        <link>https://next.datatables.net/forums/discussion/69769/papa-parse-to-dynamic-table</link>
        <pubDate>Fri, 10 Sep 2021 18:10:39 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>montoyam</dc:creator>
        <guid isPermaLink="false">69769@/forums/discussions</guid>
        <description><![CDATA[<p>I'm thinking I can't be the first person to want to do this, but I can't find any posts regarding this...</p>

<p>I am using papa parse to bring text file contents into a sql table/dataTable.  I love using this as there is no need to upload the actual text file to the server.  However, my issue is that the text file structure is able to change as new columns are added.  I have a "crosswalk" table linking column headers to another table (and eventually I unpivot the table in a sql stored procedure).  However, whenever a new column is added to the text file I need to re-publish my dataTable with the new column to receive the data.</p>

<p>Question:  Is there a way to use PapaParse to dynamically create the columns of a dataTable using the headers of the text file as column names and then populate the dataTables rows with the text file data? (then I can worry later about how to get that data to an unpivot process using my crosswalk table)</p>

<p>or, is there something better than papaparse to use for this need?</p>
]]>
        </description>
    </item>
    <item>
        <title>Post Method onClick with Popup</title>
        <link>https://next.datatables.net/forums/discussion/68612/post-method-onclick-with-popup</link>
        <pubDate>Tue, 08 Jun 2021 11:01:02 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>klay20</dc:creator>
        <guid isPermaLink="false">68612@/forums/discussions</guid>
        <description><![CDATA[<p>Hi everyone,</p>

<p>Im getting my data from api, and i want when i click a button on my table a popup will open and i will send several data to my db.</p>

<p>How can i achieve that? Is there any solution or example about post method with popup on datatable?</p>
]]>
        </description>
    </item>
    <item>
        <title>the buttons alignment don't match the table width !</title>
        <link>https://next.datatables.net/forums/discussion/68209/the-buttons-alignment-dont-match-the-table-width</link>
        <pubDate>Tue, 04 May 2021 13:07:38 +0000</pubDate>
        <category>Extensions</category>
        <dc:creator>sherif_hamdy</dc:creator>
        <guid isPermaLink="false">68209@/forums/discussions</guid>
        <description><![CDATA[<p>can you help me aligned the search box to the table width ?<br />
so i need the<br />
 - search box to be aligned to right edge of the table<br />
 - buttons centered as it's displayed.<br />
 - page length menu on right as it's.</p>

<p>And This is the Dom i use:</p>

<p>dom:<br />
        "&lt;'row'&lt;'col-sm-3'l&gt;&lt;'col-sm-6 text-center'B&gt;&lt;'col-sm-3'f&gt;&gt;" +<br />
        "&lt;'row'&lt;'col-sm-12'tr&gt;&gt;" +<br />
        "&lt;'row'&lt;'col-sm-5'i&gt;&lt;'col-sm-7'p&gt;&gt;",</p>

<p>table.buttons().container()<br />
        .appendTo( '#example_wrapper .col-sm-6:eq(0)' );<br />
    table.searchBuilder.container().prependTo(table.table().container());</p>

<p>And That's how it looks:<br />
<img src="https://datatables.net/forums/uploads/editor/0q/adxv03n8o3s4.jpg" alt="" title="" /></p>

<p><strong>Description of problem</strong>:</p>
]]>
        </description>
    </item>
   </channel>
</rss>
