<?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>Free community support — DataTables forums</title>
        <link>https://datatables.net/forums/</link>
        <pubDate>Wed, 18 Nov 2026 02:39:05 +0000</pubDate>
        <language>en</language>
            <description>Free community support — DataTables forums</description>
    <language>en</language>
    <atom:link href="https://datatables.net/forums/categories/free-community-support/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>"Cyrillic" spelt incorrectly</title>
        <link>https://datatables.net/forums/discussion/82013/cyrillic-spelt-incorrectly</link>
        <pubDate>Wed, 11 Nov 2026 16:42:42 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>greenflash</dc:creator>
        <guid isPermaLink="false">82013@/forums/discussions</guid>
        <description><![CDATA[<p>"Cyrillic" has been spelt incorrectly on <a rel="nofollow" href="https://datatables.net/download/plug-ins/i18n/Uzbek-Cryllic.html">this page</a>.</p>
]]>
        </description>
    </item>
    <item>
        <title>Datables 3.1.5 &gt; Accessing Object Properties</title>
        <link>https://datatables.net/forums/discussion/82011/datables-3-1-5-accessing-object-properties</link>
        <pubDate>Mon, 09 Nov 2026 21:21:37 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>u20241229</dc:creator>
        <guid isPermaLink="false">82011@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>:<br />
<a rel="nofollow" href="https://live.datatables.net/hixajeto/">https://live.datatables.net/hixajeto/</a></p>

<p><strong>Error messages shown</strong>:<br />
No error in this case</p>

<p><strong>Description of problem</strong>:</p>

<p>I am using this API to try and build a colour explorer:<br />
<a rel="nofollow" href="https://api.color.pizza/v1/docs/">https://api.color.pizza/v1/docs/</a></p>

<p>On the test case, I am getting colours from this API example URL - it returns data as an object (I think it's an object):<br />
<a rel="nofollow" href="https://api.color.pizza/v1/?list=mlmc_finnish">https://api.color.pizza/v1/?list=mlmc_finnish</a></p>

<p>This is the function which calls the API:</p>

<pre><code>async function apiReturnColours(list){
    const response = await fetch(API + "?list=" + encodeURIComponent(list), {
        headers: HEADERS
    });
    if (!response.ok) throw new Error("HTTP " + response.status);
    const data = await response.json();
    const colours = data.colors;
    console.log({colours});
    const table = new DataTable('#colours', {
        data: colours,
        columns: [
            { data: 'name' },
            { data: 'hex' },
            { data: 'luminance' },
            { data: {
                        "hsl": "h"
                }
            },
            { data: 'rgb' },
            { data: 'bestContrast' },
            {
                data: null,
                defaultContent: '',
                createdCell: (cell, cellData, rowData) =&gt; {
                    cell.style.backgroundColor = rowData.hex;
                }
            },
        ]
    });
}
</code></pre>

<p>I can't work out how to access the nested object data though, to put into the datatable (e.g. the <code>hsl</code>, <code>rgb</code>, <code>lab</code> and <code>swatchImg</code> attributes)?</p>

<p>I had a bodge-job attempt in the function above - I have had a look at the <a rel="nofollow" href="https://datatables.net/ref/core/option/columns.data" title="columns.data">columns.data</a> doc but I am still stuck.</p>

<p>If anyone has any time to advise please it'd be much appreciated.</p>

<p>Thanks</p>

<p>Jim</p>
]]>
        </description>
    </item>
    <item>
        <title>Got stuck with Custom content at ColumnControl</title>
        <link>https://datatables.net/forums/discussion/82006/got-stuck-with-custom-content-at-columncontrol</link>
        <pubDate>Mon, 09 Nov 2026 08:25:49 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>Wernfried</dc:creator>
        <guid isPermaLink="false">82006@/forums/discussions</guid>
        <description><![CDATA[<p>I try to use my own <a rel="nofollow" href="https://github.com/Wernfried/daterangepicker">datepicker</a> as shown in <a rel="nofollow" href="https://datatables.net/manual/extensions/columncontrol/custom">Custom content - Built-in helpers</a> because user ask to filter on date ranges.<br />
I made good progress, but now I got stuck with Server-side processing.</p>

<pre><code>DataTable.ColumnControl.content.dateRangePicker = {
  init: function (config) {
     const dt = this.dt();
     const idx = this.idx();
     const searchInput = new DataTable.ColumnControl.SearchInput(dt, idx, idx);
     searchInput.element().querySelectorAll('.dtcc-search-type-icon, .dtcc-search-icon').forEach(el =&gt; el.remove());
     searchInput.element().querySelector('.dtcc-search select').classList.add('is-hidden');
     searchInput.element().querySelector('.dtcc-search select').add(new Option('contains', 'contains', true, true));

     const picker = daterangepicker(
        searchInput.input(),
        {
           startDate: null,
           endDate: null,
           minDate: DateTime.now().startOf('month').minus({ years: 5 }),
           maxDate: DateTime.now().endOf('month').plus({ years: 1 }),
           onOutsideClick: 'cancel',
           singleMonthView: true,
           autoApply: true,
           locale: {
              format: DateTime.DATE_MED
           }
        },
        (startDate, endDate) =&gt; {
           console.log(startDate.toISO(), endDate.toISO());
           searchInput.element().classList.add('dtcc-search_active');
           searchInput.set('contains', startDate.toISO());
        }
     );
     picker.addEventListener('show', () =&gt; {
        // Prevent that daterangepicker is closed by DataTables when selecting month
        picker.container.querySelector('.prev').addEventListener('click', (ev) =&gt; { ev.stopPropagation(); }, true);
        picker.container.querySelector('.next').addEventListener('click', (ev) =&gt; { ev.stopPropagation(); }, true);
     })
     return searchInput.element();
  }
};
</code></pre>

<p>How do I trigger the ajax call to my server? I would expect <code>searchInput.set(...)</code> may trigger it, but it does not. I tried <code>runSearch()</code> and <code>search()</code> but <code>runSearch(true)</code> fails with</p>

<blockquote>
  <p>Uncaught TypeError: this._search is not a function</p>
</blockquote>

<p>Can you help me?<br />
Wernfried</p>
]]>
        </description>
    </item>
    <item>
        <title>Styling issue with Dark mode in Bulma</title>
        <link>https://datatables.net/forums/discussion/82005/styling-issue-with-dark-mode-in-bulma</link>
        <pubDate>Sun, 08 Nov 2026 08:26:40 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>Wernfried</dc:creator>
        <guid isPermaLink="false">82005@/forums/discussions</guid>
        <description><![CDATA[<p>I use Bulma dark styling as advised in <a rel="nofollow" href="https://datatables.net/manual/core/styling/dark-mode">Dark mode</a>:</p>

<pre><code>&lt;html class="theme-dark dark" data-color-scheme="dark" data-theme="dark"&gt;

&lt;table class="table is-bordered is-striped is-hoverable" id="dataTable"&gt;&lt;/table&gt;
</code></pre>

<p>and table looks like this</p>

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

<p>However, when I add<code>data-bs-theme="dark"</code> then the table looks fine. But I don't think this is by intention.</p>

<p>Kind Regards<br />
Wernfried</p>
]]>
        </description>
    </item>
    <item>
        <title>ColReorder + ColumnControl: dragging a column throws "cell of undefined" and shows wrong drag-ghost</title>
        <link>https://datatables.net/forums/discussion/81888/colreorder-columncontrol-dragging-a-column-throws-cell-of-undefined-and-shows-wrong-drag-ghost</link>
        <pubDate>Fri, 21 Aug 2026 16:28:44 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>Elizabeth M Smith</dc:creator>
        <guid isPermaLink="false">81888@/forums/discussions</guid>
        <description><![CDATA[<p>Setup: Both ColumnControl and ColReorder enabled on the same table, with ColumnControl configured to add a second header row (e.g. columnControl: [{target: 0, content: ['order']}, {target: 1, content: ['search']}] — a per-column search-box row, distinct from the order controls in the title row).</p>

<p>What happens: Dragging a column header to reorder it throws mid-drag:</p>

<p>Uncaught (in promise) TypeError: can't access property "cell", n[l][r] is undefined<br />
and the drag-ghost element shows the wrong column name (consistently shows the first/frozen column's label regardless of which column is actually being dragged). The reorder itself still completes correctly despite the error — cosmetic/console-noise, not a functional break.</p>

<p>What isolates it: Removing ColumnControl's extension entirely (keeping ColReorder alone) makes the error disappear completely. So it's specifically the combination, and specifically the second header row.</p>

<p>Suspected mechanism, traced from source: _addListener()'s listener-attachment loop (dataTables.colReorder.js) correctly scopes itself to this.c.headerRows (if (!headerRows || headerRows.includes(rowIdx))), so an unconfigured/restricted row correctly never gets a drag-start listener. But validateStructureMove() (called via moveAllowed() during an active, validly-started drag) reads table.table().header.structure() completely unfiltered by headerRows — so even a drag that legitimately starts on row 0 still runs structural validation against the entire multi-row header, including ColumnControl's injected row, which appears to produce a gap/misalignment in the structure matrix that a downstream .cell access doesn't guard against.</p>

<p>Suggested fix: Have validateStructureMove()'s structure read respect this.c.headerRows the same way _addListener()'s attachment loop already does — filter the header/footer structure to the configured rows before validating, rather than reading it unfiltered.</p>
]]>
        </description>
    </item>
    <item>
        <title>I am getting date columns as general type in excel</title>
        <link>https://datatables.net/forums/discussion/81617/i-am-getting-date-columns-as-general-type-in-excel</link>
        <pubDate>Wed, 21 Jan 2026 13:54:34 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>Karan_Motwani</dc:creator>
        <guid isPermaLink="false">81617@/forums/discussions</guid>
        <description><![CDATA[<p>{<br />
                extend: 'excelHtml5',<br />
                title: pg_name,<br />
                exportOptions: {<br />
                    columns: ':not(.no-print):visible',<br />
                    orthogonal: null,<br />
                    format: {<br />
                        body: function (data, row, column, node) {<br />
                            var $node = $(node);<br />
                            if ($node.find("span.clsColsDateStr").length) {<br />
                                $node.find("span.clsColsDateStr").remove();<br />
                            }<br />
                            var text = $node.text().trim();<br />
                            var m = moment(text, ['DD-MMM-YYYY'], true);<br />
                            if (m.isValid()) {<br />
                                return m.format('YYYY-MM-DD');<br />
                            }<br />
                            return text || "";<br />
                        }<br />
                    }<br />
                },<br />
                customize: function (xlsx) {<br />
                }<br />
}</p>
]]>
        </description>
    </item>
    <item>
        <title>Buttons 4.x: Tab in collection popover always returns focus to the first item</title>
        <link>https://datatables.net/forums/discussion/81997/buttons-4-x-tab-in-collection-popover-always-returns-focus-to-the-first-item</link>
        <pubDate>Tue, 03 Nov 2026 10:52:02 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>timofruehwirth</dc:creator>
        <guid isPermaLink="false">81997@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>: <a rel="nofollow" href="https://datatables.net/extensions/buttons/examples/column_visibility/simple.html">https://datatables.net/extensions/buttons/examples/column_visibility/simple.html</a> (Buttons 4.1.3)<br />
<strong>Debugger code (debug.datatables.net)</strong>: n/a<br />
<strong>Error messages shown</strong>: none<br />
<strong>Description of problem</strong>:</p>

<p>With the keyboard, only the first item of a collection popover (e.g. <code>colvis</code>) can be reached.</p>

<p>Steps to reproduce on the example page above:</p>

<ol>
<li>Tab to the "Column visibility" button and press Enter. The popover opens and focus moves to the first item ("Name").</li>
<li>Press Tab (or Shift+Tab).</li>
</ol>

<p>Expected: focus moves to the next item ("Position"), wrapping around at the end, as introduced with the focus trap in Buttons 2.2.3 (see <a rel="nofollow" href="https://datatables.net/forums/discussion/70659).">https://datatables.net/forums/discussion/70659).</a><br />
Actual: focus stays on "Name". The other items can't be reached with the keyboard at all.</p>

<p>Cause: in <code>js/Buttons.ts</code>, the <code>keydown.dtb-collection</code> handler checks</p>

<pre><code>if (elements.get().includes(active)) {
    // If current focus is not inside the popover
    first.focus();
    e.preventDefault();
}
</code></pre>

<p>Suggested fix:</p>

<pre><code>if (!elements.get().includes(active)) {
</code></pre>

<p>The condition contradicts its comment: whenever focus is inside the popover, every Tab press sends it back to the first item. Up to Buttons 3.2.5 the check was if (elements.index(active) === -1), so it looks like the negation got lost in the 4.0.0 rewrite. Every release since 4.0.0 is affected, including 4.1.3.</p>

<p>Tested in Firefox.</p>

<p>Issue explored and articulated with the help of LLMs.</p>
]]>
        </description>
    </item>
    <item>
        <title>Datatables 3.1.5 - data populates, but data disappears when interact with table</title>
        <link>https://datatables.net/forums/discussion/81995/datatables-3-1-5-data-populates-but-data-disappears-when-interact-with-table</link>
        <pubDate>Sat, 31 Oct 2026 19:44:00 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>u20241229</dc:creator>
        <guid isPermaLink="false">81995@/forums/discussions</guid>
        <description><![CDATA[<h3 data-anchor="Problem"><a rel="nofollow" href="#Problem"></a>Problem</h3>

<p>I am working on this test case:<br />
<a rel="nofollow" href="https://live.datatables.net/butafeho/1/edit">https://live.datatables.net/butafeho/1/edit</a></p>

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

<p>I can't get the debugger to work, sorry - it comes up with a message:</p>

<p>DataTables library not found!</p>

<p>Event though the start of the javascript is:</p>

<p><strong>new DataTable('#colours');<br />
window.DataTable = DataTable;</strong></p>

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

<p>I am a bit of a hobbyist so apologies for glaring mistakes.</p>

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

<p>When the page first loads, the datatable seems to initialise okay, sort of.</p>

<p>In the bottom-right it says:</p>

<p><strong>Showing 0 to 0 of 0 entries</strong></p>

<p>And clicking any column headings to sort data clears the table of any records.</p>

<p>I'm sorry for the basic question - I can't see what I have done wrong?</p>

<p>Thanks</p>
]]>
        </description>
    </item>
    <item>
        <title>Issue found in ColumnControl with SaveState and search logic icons</title>
        <link>https://datatables.net/forums/discussion/81885/issue-found-in-columncontrol-with-savestate-and-search-logic-icons</link>
        <pubDate>Thu, 20 Aug 2026 12:55:52 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>Elizabeth M Smith</dc:creator>
        <guid isPermaLink="false">81885@/forums/discussions</guid>
        <description><![CDATA[<p>SearchInput._stateLoad() never validates a restored search-logic value against the currently-rendered &lt;option&gt;s before repainting the type icon, so a stale/mismatched saved value renders literal "undefined". - probably should just pop the first option and clear the value if the logic type no longer exists</p>

<p>Kind of hard to reproduce all the time, but I can generally reproduce it it tables using column reorder that are then refreshed - you get "undefined" instead of the correct icon in the search input</p>
]]>
        </description>
    </item>
    <item>
        <title>ColumnControl: search input value restored from stateSave is not sent with the first server-side req</title>
        <link>https://datatables.net/forums/discussion/81940/columncontrol-search-input-value-restored-from-statesave-is-not-sent-with-the-first-server-side-req</link>
        <pubDate>Tue, 29 Sep 2026 13:37:15 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>Elizabeth M Smith</dc:creator>
        <guid isPermaLink="false">81940@/forums/discussions</guid>
        <description><![CDATA[<p>Versions: DataTables 3.1.2, ColumnControl 2.1.2 (also 3.0.4 / 2.0.2). No jQuery.</p>

<p>Description</p>

<p>With serverSide: true and stateSave: true, a ColumnControl search input restored from saved state shows its value in the header, but the first Ajax request doesn't include it. columns[i].columnControl is missing from that request, so the table loads unfiltered while the header shows a filter. Nothing redraws afterwards, so the table stays unfiltered until the user edits a search.</p>

<p>searchList is not affected: its restored selection is in the first request.</p>

<p>Reproduction (an ajax function stands in for the server; it logs what each request carries):</p>

<pre><code>const blank = { search: '', smart: true, regex: false, caseInsensitive: true };

new DataTable('#example', {
    serverSide: true,
    stateSave: true,
    stateLoadCallback: () =&gt; ({
        time: Date.now(), start: 0, length: 10, order: [], search: blank,
        columns: [{ visible: true, search: blank }],
        columnControl: { name: { searchInput: { logic: 'contains', type: 'text', value: 'abc' } } },
    }),
    stateSaveCallback: () =&gt; {},
    columns: [{ name: 'name', data: 'name' }],
    columnControl: [
        { target: 0, content: ['order'] },
        { target: 1, content: ['search'] },
    ],
    ajax: (data, callback) =&gt; {
        console.log('columnControl sent:', JSON.stringify(data.columns[0].columnControl));
        callback({ draw: data.draw, recordsTotal: 0, recordsFiltered: 0, data: [] });
    },
});
</code></pre>

<p>Expected: the first request has columns[0].columnControl.search = { value: 'abc', logic: 'contains', type: 'text' }.</p>

<p>Actual: the first request has no columnControl for the column (undefined), and the header input shows abc. Typing in the input afterwards sends columnControl.search as expected.</p>

<p>What I think is happening</p>

<p>The search content's constructor registers its preXhr listener (e.page.info().serverSide &amp;&amp; e.on('preXhr.DT', …)), and it also calls _stateLoad(state.loaded()) to restore the input. In my testing these contents are built after initComplete, which is after the first request has gone out. The restore happens with _loadingState set, so no draw follows either. The value is therefore restored into the UI, but it never reaches a request until the user changes it.</p>

<p>A plain api.draw() inside initComplete doesn't help: at that point the listener isn't registered yet, so the redraw is unfiltered too. Deferring the redraw by a tick works.</p>

<p>Workaround we're using</p>

<pre><code>initComplete(settings) {
    const api = new DataTable.Api(settings);
    const restored = Object.values(api.state.loaded()?.columnControl ?? {})
        .some((c) =&gt; c?.searchInput &amp;&amp; (c.searchInput.value !== ''
            || c.searchInput.logic === 'empty' || c.searchInput.logic === 'notEmpty'));

    if (restored) {
        setTimeout(() =&gt; api.draw(false));
    }
}
</code></pre>

<p>It works, but it costs a second request on load. It would be better if the first request carried the restored search. Either way, I'd expect a restored search to trigger a draw once the contents are ready.</p>
]]>
        </description>
    </item>
    <item>
        <title>Issue with ColumnControl after upgrate to V3</title>
        <link>https://datatables.net/forums/discussion/81974/issue-with-columncontrol-after-upgrate-to-v3</link>
        <pubDate>Wed, 21 Oct 2026 20:47:00 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>Wernfried</dc:creator>
        <guid isPermaLink="false">81974@/forums/discussions</guid>
        <description><![CDATA[<p>I have another small issue with ColumnControl search function.</p>

<p>As you may remember I have a SSP table with date columns where I combine the date-picker <code>searchInput</code> plus some pre-defined ranges <code>searchList</code>. It worked perfect in v2 but now in v3 it is not that perfect anymore.</p>

<p>When I click on the search button, then the header opens like this:<br />
<a rel="nofollow" href="https://cloud.domscheit.ch/index.php/s/y5mpwePbKWcWMaw">https://cloud.domscheit.ch/index.php/s/y5mpwePbKWcWMaw</a></p>

<p>(Sorry to use the link, upload of screenshot does not work.)</p>

<p>The v2 the date-picker was shown when you put focus on the input. Now it is shown instantly which is rather bad for my specific use-case. Another minor issue is, sometimes - I did not managed to determine when exactly - the logic icon (e.g. "=") is missing and it shows "und" which most likes stands for "undefined"</p>

<p>It there a possibility to avoid that the data-picker is shown always and instantly? I would really prefer to have it show when you put your cursor into the input field as it was the case in DTv2</p>

<p>Wernfried</p>
]]>
        </description>
    </item>
    <item>
        <title>Question/Feature requests for stateRestore default state</title>
        <link>https://datatables.net/forums/discussion/81956/question-feature-requests-for-staterestore-default-state</link>
        <pubDate>Sun, 11 Oct 2026 07:53:47 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>Wernfried</dc:creator>
        <guid isPermaLink="false">81956@/forums/discussions</guid>
        <description><![CDATA[<p>Is it possible in <code>stateRestore</code> to set the default/inital state by option or API? I did not find a simple way to do it.</p>

<p>A possible implementation might be an extension of <a rel="nofollow" href="https://datatables.net/ref/core/option/stateRestore.defaults">https://datatables.net/ref/core/option/stateRestore.defaults</a> property:</p>

<ul>
<li><code>true</code> - The end user can set a state to be the default state</li>
<li><code>false</code> - The end user cannot set a default state.</li>
<li><code>"string"</code> - The name of the state to be loaded (if existing) by default</li>
</ul>

<p>Then the default state could be retrieved for example from URL parameters:</p>

<pre><code>const urlParams = new URLSearchParams(window.location.search);
new DataTable('#myTable', {
    layout: {
        topStart: {
            buttons: ['stateCreate', 'statesList']
        }
    },
    stateRestore: {
        defaults: urlParams.get('state')
    }
});

</code></pre>

<p>If such feature becomes available, I think I could convince my manager to go for DataTables <em>Plus</em></p>

<p>Wernfried</p>
]]>
        </description>
    </item>
    <item>
        <title>JSON Schema for AJAX request</title>
        <link>https://datatables.net/forums/discussion/81969/json-schema-for-ajax-request</link>
        <pubDate>Mon, 19 Oct 2026 19:12:11 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>Wernfried</dc:creator>
        <guid isPermaLink="false">81969@/forums/discussions</guid>
        <description><![CDATA[<p>Hi Allan</p>

<p>I have a question regarding security. One important rule says "Treat all user-supplied data as untrusted." A common way to ensure security is to validate user-supplied data against a <a rel="nofollow" href="https://json-schema.org/docs">JSON Schema</a>. I have not found any JSON Schema for datatable ajax data. I only found <a rel="nofollow" href="https://datatables.net/manual/core/server-side">Server-side processing: Sent parameters</a></p>

<p>I would like to contribute to this part. I already created a working (at least for me) JSON Schema, including also parameters for  ColumnControl and SearchBuilder extension. It is also extendable to support <a rel="nofollow" href="https://datatables.net/ref/core/option/ajax.data#Examples">extra parameters</a></p>

<p>Of course, I could copy/paste the schema here as text, however I think it would make more sense to create a PR in your github repository.</p>

<p>What do you think? What would be an appropriate place for it?</p>

<p>Best Regards<br />
Wernfried</p>
]]>
        </description>
    </item>
    <item>
        <title>DataTables 3.x.x CommonJS import fails with jest/jsdom</title>
        <link>https://datatables.net/forums/discussion/81980/datatables-3-x-x-commonjs-import-fails-with-jest-jsdom</link>
        <pubDate>Thu, 22 Oct 2026 21:14:22 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>sebastianbarth</dc:creator>
        <guid isPermaLink="false">81980@/forums/discussions</guid>
        <description><![CDATA[<p>Hi Allan,<br />
I’m testing a component that uses DataTables with Jest and jsdom. Loading <code>datatables.net-dt</code> fails before creating a table.</p>

<p>I could reproduce this isolated with DataTables <code>3.1.4</code>.</p>

<p>In an empty directory:</p>

<ul>
<li><code>npm init -y</code></li>
<li><code>npm install --save-dev jest@30 jest-environment-jsdom@30 datatables.net-dt@3.1.4</code></li>
<li>Create dt.test.js:</li>
</ul>

<pre><code>test('loads DataTables', () =&gt; {
  const DataTable = require('datatables.net-dt');
  expect(DataTable).toBeDefined();
});
</code></pre>

<ul>
<li><code>npx jest --env=jsdom --runInBand</code></li>
</ul>

<p>This fails with:</p>

<pre><code>TypeError: Cannot set properties of undefined (setting 'api')
</code></pre>

<p>The styling wrapper appears to call:</p>

<pre><code>require('datatables.net')(window);
</code></pre>

<p>However, when a global window exists, the core already exports the DataTable constructor. Calling it this way reaches <code>this.api</code> with this <code>undefined</code>.<br />
Could the CommonJS wrapper use the exported constructor directly when window exists, and invoke the factory only when no global window is available, .. or similar?</p>

<p>Resolving the ESM entry points works around the issue, but it would be helpful for the CommonJS import to work too.</p>

<p>Thanks for checking!</p>

<p>Best Regards,<br />
Sebastian</p>
]]>
        </description>
    </item>
    <item>
        <title>v3: Undocumented breaking change?</title>
        <link>https://datatables.net/forums/discussion/81984/v3-undocumented-breaking-change</link>
        <pubDate>Fri, 23 Oct 2026 15:31:21 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>RichardD2</dc:creator>
        <guid isPermaLink="false">81984@/forums/discussions</guid>
        <description><![CDATA[<p>I am upgrading some code from DTv2 to v3. I have a lot of calls that use <code>$(...).dataTable().api()...</code>, which no longer seem to work. As far as I can see, this is not mentioned in <a rel="nofollow" href="https://datatables.net/download/upgrade/core/3.0/upgrade">the Upgrading to DataTables 3</a> document.</p>

<p>Examples:<br />
* <code>$("#example").dataTable().api().draw()</code> does nothing;<br />
* <code>$("#example").dataTable().api().page.info()</code> throws an exception: <em>TypeError: can't access property "displayStart", settings is undefined</em></p>

<p>Demo: <a rel="nofollow" href="https://live.datatables.net/tozajeho/1/edit?js,console,output">https://live.datatables.net/tozajeho/1/edit?js,console,output</a></p>

<ol>
<li>Switch the table to another page.</li>
<li>Click "Redraw (old)" - notice nothing happens, and the page is not reset.</li>
<li>Click "Redraw (new)" - the table is redrawn, and the page is reset to <code>1</code>.</li>
<li>Click "Page info (old)" - notice that an error is logged to the console.</li>
<li>Click "Page info (new)" - notice the page info object is logged to the console.</li>
</ol>

<p><strong>NB:</strong> These are all fairly easy to correct in my code. But if <code>$(...).dataTable().api()</code> is no longer supported, that should be mentioned in the upgrade notes. And if it <em>is</em> supposed to be supported, then there is a bug with that support. <img src="https://datatables.net/forums/resources/emoji/smile.png" title=":smile:" alt=":smile:" height="20" /></p>
]]>
        </description>
    </item>
    <item>
        <title>Issue with API button.node after v3 Upgrade</title>
        <link>https://datatables.net/forums/discussion/81983/issue-with-api-button-node-after-v3-upgrade</link>
        <pubDate>Fri, 23 Oct 2026 08:41:55 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>Wernfried</dc:creator>
        <guid isPermaLink="false">81983@/forums/discussions</guid>
        <description><![CDATA[<p>After upgrade I faced this issue with <a rel="nofollow" href="https://datatables.net/ref/core/api/buttons()">buttons</a> API.</p>

<p>In version 2 I used, for example <code>dt.buttons().each(button =&gt; { console.log(button.node.id) })</code></p>

<p>In version 3 I have to use <code>dt.buttons().each(button =&gt; { console.log(button.node.get(0).id) })</code></p>

<p>whereas <code>dt.buttons().each(button =&gt; { console.log(button.node().id) })</code><br />
returns a Error "<strong>TypeError: button.node is not a function</strong>"</p>

<p>Maybe <code>.each()</code> is the wrong function to iterate over a list of buttons.</p>

<p>It's not a mayor issue, because I found a working solution. The question is rather: does it work as designed?</p>

<p>Best Regards<br />
Wernfried</p>
]]>
        </description>
    </item>
    <item>
        <title>Restrict Search condition in Column Control</title>
        <link>https://datatables.net/forums/discussion/81979/restrict-search-condition-in-column-control</link>
        <pubDate>Thu, 22 Oct 2026 16:32:13 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>sarooptrivedi</dc:creator>
        <guid isPermaLink="false">81979@/forums/discussions</guid>
        <description><![CDATA[<p>I have Bool type column where value is true or false. Is that any way I can restrict the Column control search condition dropdown with only equal and does not equal</p>

<p><img src="https://datatables.net/forums/uploads/editor/qy/o1kvpl4rdn20.png" alt="" title="" /></p>
]]>
        </description>
    </item>
    <item>
        <title>SearchPanes: Setting Language does not worl (Core 3 + SearchPanes 3)</title>
        <link>https://datatables.net/forums/discussion/81978/searchpanes-setting-language-does-not-worl-core-3-searchpanes-3</link>
        <pubDate>Thu, 22 Oct 2026 14:09:15 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>user9827492</dc:creator>
        <guid isPermaLink="false">81978@/forums/discussions</guid>
        <description><![CDATA[<p>Core 3.1.4 + SearchPanes 3.0.0 + Select 4.1.1</p>

<p><strong>Link to test case</strong>:</p>

<p><strong>Debugger code (debug.datatables.net)</strong>:<br />
I uploaded the file. But where is the link after uploading?</p>

<p><strong>Error messages shown</strong>:</p>

<p>(Multiples times)<br />
<code>DataTables warning: table id=DataTables_Table_0 - Requested unknown parameter 'total' for row 3, column 1. For more information about this error, please see https://datatables.net/tn/4</code></p>

<p><strong>Description of problem</strong>:</p>

<p>SearchPanes do not work for us if the language-file is set.<br />
We get multiple Alert-Messages and Filtering is not working.</p>

<p>If we remove the 'language' attribute it works fine.<br />
The problem is with 'en-GB.json' too. Did not test more language files.</p>

<p><code></code>
<code>// 3.1.4 (same as https://cdn.datatables.net/plug-ins/3.1.4/i18n/de-DE.json)</code>
<code>language: {</code>
<code>url: '{{ asset('lib/datatable/de-DE.json') }}'</code>
<code>},</code></p>
]]>
        </description>
    </item>
    <item>
        <title>Bad positioning of buttons-collection in fixed layout (Columns visibility)</title>
        <link>https://datatables.net/forums/discussion/81976/bad-positioning-of-buttons-collection-in-fixed-layout-columns-visibility</link>
        <pubDate>Thu, 22 Oct 2026 12:11:54 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>Inso2008</dc:creator>
        <guid isPermaLink="false">81976@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>:<br />
<a rel="nofollow" href="https://datatables.net/examples/buttons/column_visibility/layout.html">https://datatables.net/examples/buttons/column_visibility/layout.html</a> -- you need to shrink the window to a small height, then clicking <em>"Columns (fixed layout)"</em> opens the popover element <strong>not centered</strong> -- it is lower than at center. The error is greater when the buttons-collection renders taller (has more lines) or is relatively taller (window is downsized).</p>

<p><strong>Description of problem</strong>:<br />
When opening <em>Columns visibility</em>, a popover with the collection of buttons is opened. There are two positioning variants: <em>'absolute'</em> (is not affected) and <em>else/fixed</em> (is affected). The positioning of the <em>else/fixed</em> computes its vertical position and sets <em>'margin-top'</em>. This positioning seems to have been broken when migrating the library away from jQuery dependency.</p>

<p><strong>Blame tracking</strong>:<br />
repo: <em>Buttons</em>, versions (tentatively): <em>4.0.0-4.1.2</em>, commit: <em>c0c3e0585462571270dfb544a52898f14f73d397</em><br />
file: <em>js/Buttons.ts</em><br />
function: <em>popover()</em>, the if-else branch under comment <em>"Align the popover relative to the DataTables container"</em><br />
lines (of that commit) for context: <em>675-689</em>, error line: <em>689</em><br />
error: when appending 'px' to values, you might have inadverently stripped the "multiply by -1"</p>

<p><strong>Workaround</strong>:<br />
We're currently using a CSS-fix (displays correctly within 2px-error for smaller-than-window popovers):<br />
<code>div.dt-button-collection.fixed {</code>
<code>margin-top: 0 !important;</code>
<code>transform: translateY(-50%);</code>
<code>}</code></p>

<hr />

<p>I searched the discussions here but didn't find this issue mentioned, so this is hopefully the first.<br />
Hope this is as easy a fix as it seems. Thanks for the great library..</p>
]]>
        </description>
    </item>
    <item>
        <title>How to define the size of uploaded images</title>
        <link>https://datatables.net/forums/discussion/81973/how-to-define-the-size-of-uploaded-images</link>
        <pubDate>Wed, 21 Oct 2026 19:40:34 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>kkuti</dc:creator>
        <guid isPermaLink="false">81973@/forums/discussions</guid>
        <description><![CDATA[<p>Please how can I define the size of uploaded images. The upload is done quite easily but we need to define the width and height</p>
]]>
        </description>
    </item>
    <item>
        <title>Bootstrap4 3.2.2 is not correct</title>
        <link>https://datatables.net/forums/discussion/81967/bootstrap4-3-2-2-is-not-correct</link>
        <pubDate>Mon, 19 Oct 2026 14:02:52 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>GDCarter</dc:creator>
        <guid isPermaLink="false">81967@/forums/discussions</guid>
        <description><![CDATA[<p>The bootstrap 4 version 3.1.4 works correctly but the 3.2.2 that I'm pulling from jsdeliver does not work correctly and comments about bootstrap 3.  Not sure if it this version is correct or possible a bootstrap 3 style.</p>
]]>
        </description>
    </item>
    <item>
        <title>SearchPanes Not Functioning, Even on Datatables.net Examples</title>
        <link>https://datatables.net/forums/discussion/81961/searchpanes-not-functioning-even-on-datatables-net-examples</link>
        <pubDate>Wed, 14 Oct 2026 16:05:15 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>CoopDLoop</dc:creator>
        <guid isPermaLink="false">81961@/forums/discussions</guid>
        <description><![CDATA[<p>Allow me to preface with the fact that I have been using Datatables for years and have never encountered something like this before. I used the latest version (as of 10/2026) of CDN and when I implemented search panes I kept receiving an error stating that it was an unknown feature. I know that things change with updates, so I went back through the manual and the examples. When I went to both pages of examples for search panes: <a rel="nofollow" href="https://datatables.net/examples/searchbuilder/integration/searchPanes.html">https://datatables.net/examples/searchbuilder/integration/searchPanes.html</a><br />
<a rel="nofollow" href="https://datatables.net/examples/searchbuilder/integration/searchPanesCascadeViewTotal.html">https://datatables.net/examples/searchbuilder/integration/searchPanesCascadeViewTotal.html</a><br />
I received the same error I was getting on my own project that I had implemented the exact same way that the manual and examples had explained. This leads me to believe that something is wrong on Datatables end.  If you want me to set up an example, I can but take a look at your own examples first please.<br />
<img src="https://datatables.net/forums/uploads/editor/g3/hp4cz6832ubb.png" alt="" title="" /></p>
]]>
        </description>
    </item>
    <item>
        <title>Various Items migrating to V3</title>
        <link>https://datatables.net/forums/discussion/81957/various-items-migrating-to-v3</link>
        <pubDate>Mon, 12 Oct 2026 16:52:31 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>PaulVickery</dc:creator>
        <guid isPermaLink="false">81957@/forums/discussions</guid>
        <description><![CDATA[<p>I have been migrating from Datatables V2 to V3 and have come up against a few issues which I would appreciate some help with.</p>

<p>I have created a website at <a rel="nofollow" href="https://dt.taskmgr.co.uk/various_issues.html">https://dt.taskmgr.co.uk/various_issues.html</a> which demonstrates the various issues.</p>

<p>1)  StateRestore</p>

<p>I have implemented the new StateRestore functionality successfully <a rel="nofollow" href="https://datatables.net/manual/server/php/states">https://datatables.net/manual/server/php/states</a> but have the following minor issues.</p>

<p>(a) If you doubleclick on  the states.php file in the "Name" column of the Chrome developer console you get {"error":"Unknown action"}. Not sure whether this is important as everthing apprears to work fine.</p>

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

<p>(b) Question, is it possible to add columns (as opposed to change their names)  to the default table structure as shown on <a rel="nofollow" href="https://datatables.net/manual/server/php/states">https://datatables.net/manual/server/php/states</a> as I was planning to add a "pagesize" field (desktop, Tablet Mobile).<br />
(c) I am not able to change the various texts for StateRestore as defined at <a rel="nofollow" href="https://datatables.net/download/plug-ins/i18n/English.html.">https://datatables.net/download/plug-ins/i18n/English.html.</a> I cannot get the following "state" Language options to work. I am able to get "colvis" and "editor / create"  to work  as examples that do.</p>

<pre><code>        language: {
            "buttons": {

                "colvis": "Column Vis",
                "createState": "Create Preset",
                "removeAllStates": "Remove All Presets",
                "removeState": "Remove",
                "renameState": "Rename",
                "savedStates": "Saved Presets",
                "stateRestore": "Preset %d",
                "updateState": "Update"
            },
            "editor": {
                "create": {
                    "button": "New",
                    "submit": "Submit",
                    "title": "Create new ZZZZ"
                },

            },
        },
</code></pre>

<p>2)   columnControl</p>

<p>If I use the details-control configuration as shown in various examples in conjunction with columnControl, I cannot get rid of the details_open icon in the columnControl row. Do you know how I can remove it?</p>

<p><img src="https://datatables.net/forums/uploads/editor/vx/0kkkkqn0ntyj.png" alt="" title="" /></p>

<p>3)   This issue can also be seen in V2. If a row is selected then the details_open icon is overridden by the "row selected colour" (blue in the example). Please can you help me making the details_open be in the foreground. (This was in V2)</p>

<p><img src="https://datatables.net/forums/uploads/editor/gh/uunfqu6v2mrp.png" alt="" title="" /><br />
html file --------------------------------------------------------------------------------------------------------------------------<br />
    &lt;!doctype html&gt;<br />
    &lt;html&gt;<br />
    &lt;head&gt;<br />
        &lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt;<br />
        &lt;meta name="viewport" content="width=device-width,initial-scale=1"&gt;</p>

<pre><code>    &lt;title&gt;Issues&lt;/title&gt;

    &lt;link rel="stylesheet" type="text/css" href="css/generator-base.css"&gt;

    &lt;link rel="stylesheet" href="https://nightly.datatables.net/css/dataTables.dataTables.min.css" /&gt;
    &lt;link rel="stylesheet" href="https://nightly.datatables.net/buttons/css/buttons.dataTables.min.css" /&gt;
    &lt;link rel="stylesheet" href="https://nightly.datatables.net/columncontrol/css/columnControl.dataTables.min.css" /&gt;
    &lt;link rel="stylesheet" href="https://nightly.datatables.net/datetime/css/dateTime.dataTables.min.css" /&gt;
    &lt;link rel="stylesheet" href="https://nightly.datatables.net/editor/css/editor.dataTables.min.css" /&gt;
    &lt;link rel="stylesheet" href="https://nightly.datatables.net/select/css/select.dataTables.min.css" /&gt;
    &lt;link rel="stylesheet" href="https://nightly.datatables.net/staterestore/css/stateRestore.dataTables.min.css" /&gt;

    &lt;script src="https://nightly.datatables.net/js/dataTables.min.js"&gt;&lt;/script&gt;
    &lt;script src="https://nightly.datatables.net/buttons/js/dataTables.buttons.min.js"&gt;&lt;/script&gt;
    &lt;script src="https://nightly.datatables.net/columncontrol/js/dataTables.columnControl.min.js"&gt;&lt;/script&gt;
    &lt;script src="https://nightly.datatables.net/datetime/js/dataTables.dateTime.min.js"&gt;&lt;/script&gt;
    &lt;script src="https://nightly.datatables.net/editor/js/dataTables.editor.min.js"&gt;&lt;/script&gt;
    &lt;script src="https://nightly.datatables.net/select/js/dataTables.select.min.js"&gt;&lt;/script&gt;
    &lt;script src="https://nightly.datatables.net/staterestore/js/dataTables.stateRestore.min.js"&gt;&lt;/script&gt;

    &lt;script type="text/javascript" charset="utf-8" src="js/table.example.js"&gt;&lt;/script&gt;
    &lt;style&gt;
        td.details-control {
            background: url('../images/details_open.png') no-repeat center center !important;
            cursor: pointer;
            z-index: 100000;
        }
        tr.shown td.details-control {
            background: url('../images/details_close.png') no-repeat center center !important;
            z-index: 100000;
        }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body class="dataTables"&gt;
    &lt;div class="container"&gt;
        &lt;h2&gt;Various Issues&lt;/h2&gt;
        &lt;table class="display" id="table-example"&gt;
            &lt;thead&gt;
                &lt;tr&gt;
                    &lt;th&gt;Inf&lt;/th&gt;
                    &lt;th&gt;Name&lt;/th&gt;
                    &lt;th&gt;Location&lt;/th&gt;
                &lt;/tr&gt;
            &lt;/thead&gt;
        &lt;/table&gt;

    &lt;/div&gt;
    &lt;/body&gt;
    &lt;/html&gt;
</code></pre>

<hr />

<p>Javascript file</p>

<pre><code>    addEventListener("DOMContentLoaded", function () {
        DataTable.key();

        var editor = new DataTable.Editor({
            ajax: 'php/table.example.php',
            table: '#table-example',
            fields: [
                {
                    "label": "Name:",
                    "name": "name",
                    "fieldInfo": "Enter Name"
                },
                {
                    "label": "Location:",
                    "name": "location",
                    "fieldInfo": 'Enter Location',
                }
            ]
        });

        var table = new DataTable('#table-example', {
            ajax: 'php/table.example.php',
            columns: [
                {
                    data: null,
                    className: "details-control",
                    orderable: false,
                    defaultContent: "",
                    width: "3%"
                },
                {
                    "data": "name"
                },
                {
                    "data": "location"
                },
            ],
            columnDefs: [
                {
                    target: 0, "width": "1%", columnControl: [
                        { target: 1, content: [] },
                    ]
                },
            ],
            columnControl: [
                {
                    target: 1,
                    content: ['search']
                },
            ],
            layout: {
                topStart: {
                    buttons: [
                        { extend: 'create', editor: editor },
                        { extend: 'edit', editor: editor },
                        { extend: 'remove', editor: editor },
                        {
                            extend: 'statesList',
                            buttons: [
                                'stateCreate',
                                'statesRemoveAll',
                                { extend: 'spacer', style: 'bar' }
                            ]
                        },
                        'colvis',
                    ]
                }
            },
            stateRestore: {
                ajax: '../php/states.php'
            },
            language: {
                "buttons": {

                    "colvis": "Column Vis",
                    "createState": "Create Preset",
                    "removeAllStates": "Remove All Presets",
                    "removeState": "Remove",
                    "renameState": "Rename",
                    "savedStates": "Saved Presets",
                    "stateRestore": "Preset %d",
                    "updateState": "Update"
                },
                "editor": {
                    "create": {
                        "button": "New",
                        "submit": "Submit",
                        "title": "Create new ZZZZ"
                    },

                },
            },
            select: true
        });
    });
</code></pre>

<hr />

<p>Thank you in advance</p>
]]>
        </description>
    </item>
    <item>
        <title>Problem with HTML entities in DOM source Datatable</title>
        <link>https://datatables.net/forums/discussion/81959/problem-with-html-entities-in-dom-source-datatable</link>
        <pubDate>Tue, 13 Oct 2026 14:02:26 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>Wernfried</dc:creator>
        <guid isPermaLink="false">81959@/forums/discussions</guid>
        <description><![CDATA[<p>I have this simple table:</p>

<pre><code>&lt;table class="compact table is-narrow is-hoverable" id="datatable"&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Back &amp;amp; White&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

new DataTable('#datatable', {
   columns: [{ name: 'name', data: 'name', orderable: true }],
});


console.log($('#datatable').DataTable().rows().data().toArray().map(x =&gt; x.name))

-&gt; Back &amp;amp; White

</code></pre>

<p>As output I would rather expect <code>Back &amp; White</code>. Is this behavior as designed?</p>

<p>My current workaround is this:</p>

<pre><code>$('#datatable').DataTable().rows().data().toArray().map(x =&gt; $('&lt;textarea&gt;').html(x.name).text())
</code></pre>
]]>
        </description>
    </item>
    <item>
        <title>Scroller not initializing on 3.1.3</title>
        <link>https://datatables.net/forums/discussion/81948/scroller-not-initializing-on-3-1-3</link>
        <pubDate>Mon, 05 Oct 2026 09:36:17 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>sebastianbarth</dc:creator>
        <guid isPermaLink="false">81948@/forums/discussions</guid>
        <description><![CDATA[<p>Hi Allan,</p>

<p>I just tried out 3.1.3 over 3.1.2 and like to report a possible bug:<br />
The scroller plugin (its function) seem not to be present on the first Config.drawCallback invocation:</p>

<pre><code>dataTableOptions.drawCallback = () =&gt; this.#onDraw();
</code></pre>

<p>(I didn't test if it initializes at all - Just stopped on this error)</p>

<p>Best Regards,<br />
Sebastian</p>
]]>
        </description>
    </item>
    <item>
        <title>Problem integrating a colour picker with V3</title>
        <link>https://datatables.net/forums/discussion/81958/problem-integrating-a-colour-picker-with-v3</link>
        <pubDate>Mon, 12 Oct 2026 18:41:04 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>PaulVickery</dc:creator>
        <guid isPermaLink="false">81958@/forums/discussions</guid>
        <description><![CDATA[<p>I realise that this may be the wrong forum for this question, and I apologise in advance as it involves a third party implementation / api. The reason that I have posted this here is in case it could be a DT issue.</p>

<p>I have been using the excellent colour picker implementation by Greg Brainerd at <a rel="nofollow" href="https://datatables.net/forums/discussion/32658/color-picker">https://datatables.net/forums/discussion/32658/color-picker</a> which uses Spectrum.</p>

<p>I managed to implement the colour picker in V2, but I<br />
am now having issues with V3 so if anyone could assist, I would be greatful.</p>

<p>To demonstrate the problem I have created a website with two URLS, one with the V2 libraries in the html file and the other with V3. All other files (javascript / php controller files etc ) are common and both both use JQuery. The PHP environment is the latest from the Datatables Download Builder, but I have changed the V3 libraries to the nightly ones for now. The DT license file has been removed as well.</p>

<p>The two URLS are:</p>

<p><a rel="nofollow" href="https://dt.taskmgr.co.uk/colourV2.html">https://dt.taskmgr.co.uk/colourV2.html</a>  (Datatables V2 libraries)</p>

<p><a rel="nofollow" href="https://dt.taskmgr.co.uk/colourV3.html">https://dt.taskmgr.co.uk/colourV3.html</a>  (Datatables V3 libraries)</p>

<p>The issue is that when you edit /create a row you now get the following in the "colour" field, "[object][object]". I don't see any messages in the browser (Chrome) dev console.</p>

<p>This what the V3 issue looks like:</p>

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

<p>This is V2:</p>

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

<p>Apologies again in advance if this is in the wrong forum.</p>

<h2 data-anchor="JavaScript-file"><a rel="nofollow" href="#JavaScript-file"></a>JavaScript file</h2>

<pre><code>(function ($, DataTable) {

    if (!DataTable.ext.editorFields) {
        DataTable.ext.editorFields = {};
    }

    var Editor = DataTable.Editor;
    var _fieldTypes = DataTable.ext.editorFields;

    _fieldTypes.colorpicker = {
        create: function (conf) {
            var that = this;

            conf._enabled = true;

            // Create the elements to use for the input
            conf._input = $(
                '&lt;div id="' + Editor.safeId(conf.id) + '"&gt;' +
                '&lt;input type="text" class="basic" id="spectrum"/&gt;' +
                '&lt;em id="basic-log"&gt;&lt;/em&gt;' +
                '&lt;/div&gt;');

            // Use the fact that we are called in the Editor instance's scope to call
            // input.ClassName
            $("input.basic", conf._input).spectrum({
                //color: "#f00",
                change: function (color) {
                    $("#basic-log").text(color.toHexString());
                }
            });
            return conf._input;
        },

        get: function (conf) {
            var val = $("input.basic", conf._input).spectrum("get").toHexString();
            return val;
        },

        set: function (conf, val) {
            $("input.basic", conf._input).spectrum({
                color: val,
                change: function (color) {
                    $("#basic-log").text("change called: " + color.toHexString());
                }
            });
        },

        enable: function (conf) {
            conf._enabled = true;
            $(conf._input).removeClass('disabled');
        },

        disable: function (conf) {
            conf._enabled = false;
            $(conf._input).addClass('disabled');
        }
    };
})(jQuery, jQuery.fn.dataTable);




addEventListener("DOMContentLoaded", function () {

    var editor = new DataTable.Editor({
        ajax: 'php/table.colour.php',
        table: 'table.display',
        fields: [
            {
                "label": "Information:",
                "name": "information"
            },
            {
                "label": "Colour:",
                "name": "colour",
                "type": "colorpicker",
            }
        ]
    });

    var table = new DataTable('table.display', {
        //  data: dataSet.data,
        ajax: 'php/table.colour.php',
        columns: [
            {
                "data": "information"
            },
            {
                data: "colour",
                render: function (data, type, row) {
                    if (type === 'display') {
                        return '&lt;div class="colorSquare" style="background:' + data + ';"&gt;&lt;/div&gt;';
                    }
                    return data;
                },
                className: "dt-body-center"
            },
        ],
        layout: {
            topStart: {
                buttons: [
                    { extend: 'create', editor: editor },
                    { extend: 'edit', editor: editor },
                    { extend: 'remove', editor: editor }
                ]
            },
            bottomStart: null,
            bottomEnd: null
        },
        select: true
    });

});
</code></pre>
]]>
        </description>
    </item>
    <item>
        <title>ColumnControl multiHeader</title>
        <link>https://datatables.net/forums/discussion/81955/columncontrol-multiheader</link>
        <pubDate>Sat, 10 Oct 2026 17:28:30 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>Wooly65</dc:creator>
        <guid isPermaLink="false">81955@/forums/discussions</guid>
        <description><![CDATA[<p>Trying to work up a testcase, but the sort icons are not showing up on DataTables live.<br />
<a rel="nofollow" href="https://live.datatables.net/sijoyimi/2/edit">https://live.datatables.net/sijoyimi/2/edit</a></p>

<p>I will complete the testcase if I could get it working.</p>

<p>I am referencing the nightly build since the library release chooses are not recent<br />
* DataTables v3,04 instead of the latest 3.1.3<br />
* ColumnControl v2.0.2 instead of the latest 2.1.2</p>

<p><img src="https://datatables.net/forums/uploads/editor/yd/700m1oe2sfv6.png" alt="" title="" /></p>

<p>The issue I have is that column 0 and 1 are showing sort indicator even though I have columnControl: [] for both the targets.  So not sure if this has to do with multiple headers.</p>

<pre><code>        ordering: { indicators: false, handler: false},
        columnControl: {target: 1, content: ['order']},
</code></pre>

<p>For the columnDefs</p>

<pre><code>            {
                target: 0,
                className: 'details-control',
                columnControl: [],
                data: null,
                defaultContent: '',
                width:"15px"
            },
            {
                target: 1,
                className: 'dt-indexCol',
                columnControl: [],
                defaultContent: '',
                searchable: false,
                width: 20,
            },
</code></pre>

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

<p>It is working fine on a datatable that only has a single header</p>

<p><img src="https://datatables.net/forums/uploads/editor/lg/10g2cndbuz9b.png" alt="" title="" /></p>
]]>
        </description>
    </item>
    <item>
        <title>Replace Sort Icons in DataTables v3</title>
        <link>https://datatables.net/forums/discussion/81953/replace-sort-icons-in-datatables-v3</link>
        <pubDate>Sat, 10 Oct 2026 00:31:06 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>Wooly65</dc:creator>
        <guid isPermaLink="false">81953@/forums/discussions</guid>
        <description><![CDATA[<p>I had discussed replacing sort icons in DataTables v2 in the following <a rel="nofollow" href="https://datatables.net/forums/discussion/comment/231996/#Comment_231996" title="discussion">discussion</a> <strong>Replace Sort Icons in Datatable 2.07</strong> in May 2024.</p>

<p>I am just now beginning to update my application from v2 to the latest DataTables v3.1.3 and latest extensions.  I have found any discussion about this yet. I am using the browser elements tab to inspect the css and reviewing the dataTables.bootstrap5.css file.</p>

<p>I will continue to look at this over the holiday weekend.  Any hints would help.</p>
]]>
        </description>
    </item>
    <item>
        <title>PlugIn Feature orderNumbers not accepting className</title>
        <link>https://datatables.net/forums/discussion/81954/plugin-feature-ordernumbers-not-accepting-classname</link>
        <pubDate>Sat, 10 Oct 2026 04:43:32 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>Wooly65</dc:creator>
        <guid isPermaLink="false">81954@/forums/discussions</guid>
        <description><![CDATA[<p>Because of a previous discuss <a rel="nofollow" href="https://datatables.net/forums/discussion/79716" title="Ordering sequence plugin assign class">Ordering sequence plugin assign class</a> I was about the enable and assign a class to the PlugIn feature <strong>orderNumbers</strong> by calling:</p>

<p><code>orderNumbers: {className: 'dt-order-number-top'},</code></p>

<p>This work fine in DataTables v2, but for DataTables v3 the orderNumber feature was refactored and it seems it won;t accept the className.  A quick look at the code I don't see where the issue is.</p>

<p><img src="https://datatables.net/forums/uploads/editor/8w/t2ktwjr7jsku.png" alt="" title="" /></p>

<p><img src="https://datatables.net/forums/uploads/editor/ni/1162ij9avzx0.png" alt="" title="" /></p>

<p><img src="https://datatables.net/forums/uploads/editor/ep/zfvdpxc26h38.png" alt="" title="" /></p>
]]>
        </description>
    </item>
    <item>
        <title>DataTables 3.1.2 - FixedHeader column widths become misaligned with Responsive</title>
        <link>https://datatables.net/forums/discussion/81936/datatables-3-1-2-fixedheader-column-widths-become-misaligned-with-responsive</link>
        <pubDate>Sat, 26 Sep 2026 13:25:05 +0000</pubDate>
        <category>Free community support</category>
        <dc:creator>tenobe4350</dc:creator>
        <guid isPermaLink="false">81936@/forums/discussions</guid>
        <description><![CDATA[<p>Hi,</p>

<p>I'm experiencing a column alignment issue with DataTables 3.1.2 when using FixedHeader together with Responsive.</p>

<p>My table contains a large number of columns. When the table is initially displayed, everything is correctly aligned: the table header and body columns have the correct widths.</p>

<p>However, when I scroll down and FixedHeader becomes active, the floating/fixed header is no longer aligned with the table.</p>

<p>The actual table columns keep their correct widths, but the FixedHeader floating header calculates different widths, causing the &lt;th&gt; elements in the fixed header to no longer line up with the corresponding columns in the table body.</p>

<p>The issue is particularly noticeable when there are many columns and Responsive is enabled.</p>

<p>The behavior is:</p>

<p>1 - The page loads and the DataTable is correctly aligned.<br />
2 - Responsive determines which columns should be visible.<br />
3 - The table header and body are correctly aligned.<br />
4 - I scroll down.<br />
5 - FixedHeader becomes active.<br />
6 - FixedHeader calculates the widths of its floating header.<br />
7 - The calculated widths don't match the widths of the original table.<br />
8 - The floating header therefore becomes horizontally misaligned with the table body.</p>

<p>It looks like the FixedHeader width calculation in DataTables 3.1.2 is not using the final column widths from the original DataTable layout, particularly when Responsive is also managing a large number of columns.</p>

<p>The important thing is that this behaviour did not occur in previous versions. With the older DataTables versions, the FixedHeader remained correctly aligned with the table.</p>

<p>I'm currently using:</p>

<p>DataTables: 3.1.2<br />
FixedHeader<br />
Responsive</p>

<p>Example configuration:</p>

<p>new DataTable('#example', {<br />
    responsive: true,<br />
    fixedHeader: true<br />
});</p>

<p>Could this be a regression in DataTables 3.1.2, specifically in the way FixedHeader calculates or copies the column widths when it becomes fixed?</p>

<p>It seems that the original DataTable has the correct widths, but the cloned/floating FixedHeader does not receive or calculate those same widths correctly.</p>

<p>I would appreciate any advice on how to make FixedHeader use exactly the same column widths as the original table, or whether this is a known issue in DataTables 3.1.2.</p>

<p>Thanks!</p>
]]>
        </description>
    </item>
   </channel>
</rss>
