<?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>DataTables 1.8 — DataTables forums</title>
        <link>https://datatables.net/forums/</link>
        <pubDate>Fri, 10 Apr 2026 23:31:51 +0000</pubDate>
        <language>en</language>
            <description>DataTables 1.8 — DataTables forums</description>
    <language>en</language>
    <atom:link href="https://datatables.net/forums/categories/datatables-1.8/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Cannot set properties of undefined (setting 'bootstrap')</title>
        <link>https://datatables.net/forums/discussion/78304/cannot-set-properties-of-undefined-setting-bootstrap</link>
        <pubDate>Tue, 27 Feb 2024 08:56:47 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>ibokat</dc:creator>
        <guid isPermaLink="false">78304@/forums/discussions</guid>
        <description><![CDATA[<p>After upgrading to version 2.0.0 (npm packages) I now get the error</p>

<p>Cannot set properties of undefined (setting 'bootstrap')</p>

<p>import $ from 'jquery';<br />
import DataTable from 'datatables.net-bs4';<br />
import Editor from 'datatables.net-editor-dt';<br />
import 'datatables.net-autofill-bs4';<br />
import 'datatables.net-buttons-bs4';<br />
import 'datatables.net-buttons/js/buttons.colVis.mjs';<br />
import 'datatables.net-buttons/js/buttons.html5.mjs';<br />
import 'datatables.net-buttons/js/buttons.print.mjs';<br />
import 'datatables.net-colreorder-bs4';<br />
....</p>

<p>I saw there was a way to fix it with the ""overrides": {<br />
    "datatables.net-bs4": {<br />
      "datatables.net": "2.0.0"<br />
    }<br />
  }</p>

<p>But this does not work for me.</p>
]]>
        </description>
    </item>
    <item>
        <title>I'm running into json invalid</title>
        <link>https://datatables.net/forums/discussion/72072/im-running-into-json-invalid</link>
        <pubDate>Thu, 17 Mar 2022 03:45:01 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>abdoulieSamateh38</dc:creator>
        <guid isPermaLink="false">72072@/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>
]]>
        </description>
    </item>
    <item>
        <title>How can I access the information of other pages that is not visible in a table with javascript?</title>
        <link>https://datatables.net/forums/discussion/72020/how-can-i-access-the-information-of-other-pages-that-is-not-visible-in-a-table-with-javascript</link>
        <pubDate>Fri, 11 Mar 2022 20:36:45 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>RMedina</dc:creator>
        <guid isPermaLink="false">72020@/forums/discussions</guid>
        <description><![CDATA[<p>Hi guys, I have a question. I am implementing a table with datatables and I have a question. When making a filter in the input search of the table I want to be able to read all the information of all the pages with javascript to be able to add an amount, but with the javascript code when going through the tbody of the table it only goes through the first sheet with just the first 10 lines that it contains, I would like to be able to read all the pages even if they are not visible</p>

<p>This is what I am currently doing:</p>

<p>d.addEventListener('change', e=&gt; {<br />
        if(e.target.getAttribute('type') == 'search'){<br />
            if($tbody.children.length &gt; 0){<br />
                let netoSumar = 0<br />
                let saldoSumar = 0<br />
                for(i=0; i&lt; $tbody.children.length; i++){<br />
                    let valorSaldo = $tbody.children[i].children[8].textContent<br />
                }<br />
            }else{<br />
                console.log($tbody.children)<br />
            }<br />
        }<br />
    })</p>
]]>
        </description>
    </item>
    <item>
        <title>Data table values are not displaying in table.If we click on header it is displaying</title>
        <link>https://datatables.net/forums/discussion/71861/data-table-values-are-not-displaying-in-table-if-we-click-on-header-it-is-displaying</link>
        <pubDate>Mon, 28 Feb 2022 12:26:01 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>rksakthi123</dc:creator>
        <guid isPermaLink="false">71861@/forums/discussions</guid>
        <description><![CDATA[<p>Actually i am hitting one getAPI and getting json response. When i try to render in HTML page with datatable, data is not displaying initially, but if we click on the header it displays the data as shown in attached image<br />
<img src="https://datatables.net/forums/uploads/editor/ay/ige6l0343duy.png" alt="" title="" /><br />
<img src="https://datatables.net/forums/uploads/editor/qm/0rrsym6enquw.png" alt="" title="" /></p>

<h1 data-anchor="My-Javascript:"><a name="My-Javascript:" rel="nofollow" href="#My-Javascript:"></a>My Javascript:</h1>

<pre><code>function show(response,entity) {
  let i=0;
  console.log("first"+i);
  var myColumnsCosmo = [];

    $.each( response[i].Cosmo[0], function( key, value ) {
            var my_item = {};
            my_item.data = key;
            my_item.title = key;
            myColumnsCosmo.push(my_item);
    });

  var table = $('#dtCosmo').DataTable({
     data:response[i].Cosmo,
      "columns": myColumnsCosmo,
      stateSave: true,
    "bDestroy": true,
    "scrollX": true
   });
}
</code></pre>

<h1 data-anchor="My-HTML:"><a name="My-HTML:" rel="nofollow" href="#My-HTML:"></a>My HTML:</h1>

<pre><code>  &lt;div class="tab-pane fade in active" id="programCosmo"&gt;
           &lt;table id="dtCosmo" class="table table-bordered center" cellspacing="0" width="100%"&gt;

            &lt;/table&gt;
        &lt;/div&gt;
</code></pre>

<p><strong>Edited by Kevin:</strong>  Syntax highlighting. Details on how to highlight code using markdown can be <a rel="nofollow" href="https://datatables.net/manual/tech-notes/8#Code">found in this guide</a></p>
]]>
        </description>
    </item>
    <item>
        <title>Removing quotation marks from ajax data</title>
        <link>https://datatables.net/forums/discussion/71810/removing-quotation-marks-from-ajax-data</link>
        <pubDate>Wed, 23 Feb 2022 21:12:31 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>lschneiderman</dc:creator>
        <guid isPermaLink="false">71810@/forums/discussions</guid>
        <description><![CDATA[<p>Everything is working perfectly with my dataTable except that some of the data appears in quote marks:</p>

<p><a rel="nofollow" href="https://newsinteractive.post-gazette.com/fish-fry-pittsburgh/">https://newsinteractive.post-gazette.com/fish-fry-pittsburgh/</a></p>

<p>How do I remove the quotation marks please?</p>

<p>$('#results').DataTable({<br />
          "processing": true,<br />
            searching: true,<br />
            "ajax": {<br />
                "url": "./php/get_data.php",<br />
                "type": "POST",<br />
                "dataSrc": ""<br />
            },<br />
            columns: [<br />
            { title: "Venue", data: "venue" },<br />
            { title: "Address", data: "address" },<br />
            { title: "Neighborhood", data: "neighborhood" },<br />
            { title: "Phone", data: "phone"},<br />
            { title: "Times", data: "times" },<br />
            { title: "Menu", data: "menu" },<br />
            { title: "Notes", data: "notes" }<br />
            ]<br />
      });</p>
]]>
        </description>
    </item>
    <item>
        <title>Trying to define the table.select.style after initialization unsuccessfully</title>
        <link>https://datatables.net/forums/discussion/71541/trying-to-define-the-table-select-style-after-initialization-unsuccessfully</link>
        <pubDate>Sun, 06 Feb 2022 11:02:17 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>adi_b</dc:creator>
        <guid isPermaLink="false">71541@/forums/discussions</guid>
        <description><![CDATA[<p>Hi,<br />
I added a code in order to define the style and way of selecting items in a table,using the following code:</p>

<p>var table = $('#myTable').DataTable();<br />
table.select.style( 'os' );<br />
table.select.items( 'cell' );</p>

<p>However, I get an error: " Cannot read properties of undefined (reading 'style')".</p>

<p>I can't understand why the select property is undefined.</p>

<p>Do you have any idea?</p>

<p>Thanks,</p>
]]>
        </description>
    </item>
    <item>
        <title>Footer totals are NOT recalculated after destroying table and recreating?</title>
        <link>https://datatables.net/forums/discussion/70296/footer-totals-are-not-recalculated-after-destroying-table-and-recreating</link>
        <pubDate>Mon, 18 Oct 2021 09:38:45 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>hadi13</dc:creator>
        <guid isPermaLink="false">70296@/forums/discussions</guid>
        <description><![CDATA[<p>closed here with no answer<br />
<a rel="nofollow" href="https://datatables.net/forums/discussion/24263/footer-totals-are-not-recalculated-after-destroying-table-and-recreating">https://datatables.net/forums/discussion/24263/footer-totals-are-not-recalculated-after-destroying-table-and-recreating</a></p>

<p><strong>Link to test case</strong>:<br />
<strong>Debugger code (debug.datatables.net)</strong>:</p>

<p><strong>Error messages shown</strong>:<br />
<strong>Description of problem</strong>:</p>

<p>Footer totals are NOT recalculated after destroying table and recreating?</p>

<p>"footerCallback": function (row, data, start, end, display) {<br />
                        var api = this.api(),<br />
                            intVal = function (i) {<br />
                                return typeof i === 'string' ?<br />
                                    i.replace(/[, Rs]|(&#46;\d{2})/g, "") * 1 :<br />
                                    typeof i === 'number' ?<br />
                                        i : 0;<br />
                            }<br />
                        total = Intl.NumberFormat('id-ID').format((api<br />
                            .column(2, { filter: 'applied' })<br />
                            .data()<br />
                            .reduce(function (a, b) {<br />
                                return intVal(a) + intVal(b);<br />
                            }, 0)).toFixed(2))<br />
                        $(api.column(2).footer()).html(<br />
                            total<br />
                        );<br />
                    }</p>
]]>
        </description>
    </item>
    <item>
        <title>Filtering and orderable false</title>
        <link>https://datatables.net/forums/discussion/71392/filtering-and-orderable-false</link>
        <pubDate>Wed, 26 Jan 2022 12:37:24 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>miltont</dc:creator>
        <guid isPermaLink="false">71392@/forums/discussions</guid>
        <description><![CDATA[<p>I have the following script:</p>

<pre><code>&lt;script&gt;
       $(document).ready( function () {
       var table = $('#myTable').dataTable( {  
       "order":[[1,"desc"],[2,"desc"],[3,"desc"],[4,"desc"],[5,"desc"]],
       "dom": '&lt;lif&lt;t&gt;p&gt;',                                                 
       lengthMenu: [[100,10,25,50,-1],[100,10,25,50,"All"]],               
       fixedHeader: {headerOffset: 80},
                           
       columnDefs: [                                                       
                   { targets: [1,2,3,7,8], className: 'dt-body-center'},
                   { targets: [4,5,6,9], className: 'dt-body-right'},
                   { targets: [1], render: DataTable.render.number( ',', '.' )},
                   { targets: [7], render: DataTable.render.number( ',', '.', 0, '$' )}
                   ]
                        
                }); 
           } );
  &lt;/script&gt;
</code></pre>

<p>And I don't know how to include the following code inside this...</p>

<pre><code>var table = $('#example').DataTable();
 
var filteredData = table
    .column( 0 )
    .data()
    .filter( function ( value, index ) {
        return value &gt; 20 ? true : false;
    } );
</code></pre>

<p>also I tried adding the following to disallow ordering and this would not work.</p>

<p><code>{</code>
<code>targets: [ 0, 1, 2, 3, 4, 5 ],</code>
<code>orderable: false</code>
<code>},</code>
</p>

<p>Any assistance would be appreciated.</p>

<p>Milton.</p>
]]>
        </description>
    </item>
    <item>
        <title>How to make search with Ajax instead of default filtering data</title>
        <link>https://datatables.net/forums/discussion/71024/how-to-make-search-with-ajax-instead-of-default-filtering-data</link>
        <pubDate>Fri, 24 Dec 2021 10:43:36 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>inajaf</dc:creator>
        <guid isPermaLink="false">71024@/forums/discussions</guid>
        <description><![CDATA[<p>Guys how to make a search with Ajax with child rows datatables<br />
For example data tables <a rel="nofollow" href="https://www.jq22.com/demo/DataTables-141023114035/examples/api/row_details.html" title="https://jq22.com/demo/DataTables-141023114035/examples/api/row_details.html"></a><a rel="nofollow" href="https://jq22.com/demo/DataTables-141023114035/examples/api/row_details.html">https://jq22.com/demo/DataTables-141023114035/examples/api/row_details.html</a></p>

<p>I am trying this example: <a rel="nofollow" href="https://www.datatables.net/examples/server_side/simple.html" title="https://datatables.net/examples/server_side/simple.html"></a><a rel="nofollow" href="https://datatables.net/examples/server_side/simple.html">https://datatables.net/examples/server_side/simple.html</a></p>

<p>It's not worked for my script <a rel="nofollow" href="https://jsfiddle.net/inajaf/g8zuL705" title="https://jsfiddle.net/inajaf/g8zuL705"></a><a rel="nofollow" href="https://jsfiddle.net/inajaf/g8zuL705">https://jsfiddle.net/inajaf/g8zuL705</a></p>
]]>
        </description>
    </item>
    <item>
        <title>How to save searched data as json</title>
        <link>https://datatables.net/forums/discussion/71016/how-to-save-searched-data-as-json</link>
        <pubDate>Thu, 23 Dec 2021 12:28:15 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>inajaf</dc:creator>
        <guid isPermaLink="false">71016@/forums/discussions</guid>
        <description><![CDATA[<p>Guys, how to save temporary data in JSON format after searching(after filtering) in data tables. I need to export to excel via Php spreadsheet the data after filtration in data tables without using the native Export function in data tables.</p>

<p>Thank you.</p>
]]>
        </description>
    </item>
    <item>
        <title>Parsing nested array</title>
        <link>https://datatables.net/forums/discussion/70946/parsing-nested-array</link>
        <pubDate>Wed, 15 Dec 2021 07:30:44 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>d1nd141</dc:creator>
        <guid isPermaLink="false">70946@/forums/discussions</guid>
        <description><![CDATA[<p>Hello,<br />
i have the following json, i'm reading with ajax:</p>

<pre><code>{
    "data": [
        {
            "seen": false,
            "id": "ce3ee69f-4929-4d56-9029-df100f7f8975-xxxxx",
            "message": "[xxx] OSSWIN_PagingFilePrc_M1",
            "status": "open",
            "acknowledged": false,
            "dd": false,
            "tags": [
                "env:PROD",
                "hostname:xxx.xxx.xxx",
                "servicename:SE00098"
            ],
            "count": 2
        },
        {
            "seen": false,
            "id": "ce3ee69f-4929-4d56-9029-xxxxx-1638954580271",
            "message": "[xxx] OSSWIN_PagingFilePrc_M2",
            "status": "open",
            "acknowledged": false,
            "dd": false,
            "tags": [
                "hostname:xxx.xxx.xxx",
                "supportgroup:SUPP.WINDOWS"
            ],
            "count": 2
        }
    ]
}
</code></pre>

<p>script:</p>

<pre><code>var table = $('#myTable2').DataTable( {
        "processing": true,
        "serverSide": true,
                "ajax": "./parse_all_local.php",
            "columns": [
                { "data": "id" },
                { "data": "status" },
                { "data": "source" },
                { "data": "message" },
                { "data": "acknowledged" },
                { "data": "createdAt" },
                { "data": "lastOccurredAt" },
                { "data": "priority" },
                { "data": "tags.1" }
            ]
etc
</code></pre>

<p>using "tags.1", i always receive the first element.<br />
But i need to put (if existing) the hostname in a column, so the supportgroup etc in another column.<br />
For some events, they don't exist, so the column should be empty.<br />
Also the position in the array is not always the same.<br />
As the tags are not key=value, i probably have to split the string, loop through every item, then fill the column?</p>

<p>Is this possible somehow?<br />
Thanks</p>

<blockquote>
  <p><strong>Edited by Colin</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>Retrieve Distinct Values from Datatable Columns and populate Select Dropdown</title>
        <link>https://datatables.net/forums/discussion/70142/retrieve-distinct-values-from-datatable-columns-and-populate-select-dropdown</link>
        <pubDate>Wed, 06 Oct 2021 15:31:21 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>Guyto</dc:creator>
        <guid isPermaLink="false">70142@/forums/discussions</guid>
        <description><![CDATA[<p>I have dilemma and need guidance. I have 2 Select Dropdowns. One for facilities and the other for patients that get populated in my Laravel 8 website. I use datatables to populate my records for facilities and patients columns. I want to know how to do the following. My first facility select dropdown on the onchange action should look for the disctinct values and populate my patient select dropdown from data within the Datatables Patients column and get its distinct values as its options.</p>

<p>I want to put the code on the onchange of the first Facilities select dropdown.</p>

<p>//facility select right below TBR if not function first section<br />
$('#facilitySelect').on('change', function() {<br />
                    table.column($(this).data('column'))<br />
                    .search($(this).val())<br />
                    .draw();<br />
                });</p>

<p>How do I do this?</p>
]]>
        </description>
    </item>
    <item>
        <title>How to put empty values in data parametr</title>
        <link>https://datatables.net/forums/discussion/70733/how-to-put-empty-values-in-data-parametr</link>
        <pubDate>Thu, 25 Nov 2021 13:44:05 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>inajaf</dc:creator>
        <guid isPermaLink="false">70733@/forums/discussions</guid>
        <description><![CDATA[<p><img src="https://datatables.net/forums/uploads/editor/an/36d80zuo71sd.png" alt="" title="" /></p>

<p>Guys, how to call empty fields with data parameters? I got an error for the empty parameter. I need to call some fields as empty on my view page</p>

<p><strong>Error</strong>:<br />
<img src="https://datatables.net/forums/uploads/editor/4l/gdvtuei3i22u.png" alt="" title="" /></p>
]]>
        </description>
    </item>
    <item>
        <title>How to sort table by child row</title>
        <link>https://datatables.net/forums/discussion/70598/how-to-sort-table-by-child-row</link>
        <pubDate>Fri, 12 Nov 2021 05:25:24 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>inajaf</dc:creator>
        <guid isPermaLink="false">70598@/forums/discussions</guid>
        <description><![CDATA[<p>Guys how to sort table by the child row by the created_at field inside the child row?</p>

<p><img src="https://datatables.net/forums/uploads/editor/rw/usbzu9rzzg6r.png" alt="" title="" /></p>
]]>
        </description>
    </item>
    <item>
        <title>How to send parameter to language url</title>
        <link>https://datatables.net/forums/discussion/70565/how-to-send-parameter-to-language-url</link>
        <pubDate>Wed, 10 Nov 2021 11:15:30 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>inajaf</dc:creator>
        <guid isPermaLink="false">70565@/forums/discussions</guid>
        <description><![CDATA[<p>Guys, how to send parameter to** language: { url: ** . url is not visible in <strong>language</strong></p>

<pre><code> var url = 'Not set';

    var emp = $('#countable')
        .on('init.dt', function () {

            let language = document.documentElement.lang;

            if (language === 'az') {
                url = '/plugins/datatables/i18n/az_AZ.json'
            } else if (language === 'ru') {
                url = '/plugins/datatables/i18n/ru_RU.json'
            }
        })

        .DataTable({
            language: {
                url: url,
                paginate: {
                    next: '»',
                    previous: '«'
                },
            },
</code></pre>
]]>
        </description>
    </item>
    <item>
        <title>How to load locale json with translation</title>
        <link>https://datatables.net/forums/discussion/70479/how-to-load-locale-json-with-translation</link>
        <pubDate>Tue, 02 Nov 2021 13:47:19 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>inajaf</dc:creator>
        <guid isPermaLink="false">70479@/forums/discussions</guid>
        <description><![CDATA[<p>I am trying to use i18n for data tables, but when I put  <code>"url": "/dataTables/i18n/de_de.lang"</code> parameter, it's not working but works with the CDN link. Could it be a folder permission issue? Maybe there is different way to load JSON in language parameter</p>
]]>
        </description>
    </item>
    <item>
        <title>I have use datatable, now i want to sum only the filtered price, how to do that plz Thanks</title>
        <link>https://datatables.net/forums/discussion/70460/i-have-use-datatable-now-i-want-to-sum-only-the-filtered-price-how-to-do-that-plz-thanks</link>
        <pubDate>Sun, 31 Oct 2021 02:41:14 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>salimkhan</dc:creator>
        <guid isPermaLink="false">70460@/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>
]]>
        </description>
    </item>
    <item>
        <title>restructing datatables call for making sure it works for internet explorer 9</title>
        <link>https://datatables.net/forums/discussion/70451/restructing-datatables-call-for-making-sure-it-works-for-internet-explorer-9</link>
        <pubDate>Fri, 29 Oct 2021 14:45:13 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>maniya</dc:creator>
        <guid isPermaLink="false">70451@/forums/discussions</guid>
        <description><![CDATA[<p>I have data tables working and perfectly fine, now i am trying to use old version of datatables but for IE 9 its all breaking up, anyone who can provide me some help with this code</p>

<pre><code>$("#datatables").DataTable({
    "bFilter": true,
    "serverSide": true,
    "deferRender":true,
    "processing": true,
    "fixedHeader": true,
    "scrollX": true,
    "columns": [
        { "data": "Name", "title": "Name", "autoWidth": true },
        { "data": "Email", "title":"Email", "autoWidth": true },

    ],
    "ajax": {
        "url" : "/page.php",
        "type" : 'post',
        "data": function (d) {
            return $.extend({}, d, {
                "sdate": $('#sdate').val(),
                "edate": $('#edate').val()
            });
        }
    },
    "language": {
            "processing": '&lt;i class="fa fa-spinner fa-spin fa-3x fa-fw"&gt;&lt;/i&gt;&lt;span class="sr-only"&gt;Loading..n.&lt;/span&gt; ',
            "emptyTable": "No Data available"
    },
    "scroller": {
      loadingIndicator: true
    },
    "initComplete" : function () {
        $('.dataTables_scrollBody thead tr').addClass('hidden');
    }
});
</code></pre>
]]>
        </description>
    </item>
    <item>
        <title>datatable colorize all lines containing a searched item</title>
        <link>https://datatables.net/forums/discussion/69467/datatable-colorize-all-lines-containing-a-searched-item</link>
        <pubDate>Thu, 19 Aug 2021 16:25:50 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>messaoud</dc:creator>
        <guid isPermaLink="false">69467@/forums/discussions</guid>
        <description><![CDATA[<p>Hi all ,is there an api in dataTable that allows you to look up the values in the table and then color the entire row or is without erasing the rest of the rows?</p>
]]>
        </description>
    </item>
    <item>
        <title>Complex Header Rowspan and Colspan</title>
        <link>https://datatables.net/forums/discussion/69280/complex-header-rowspan-and-colspan</link>
        <pubDate>Tue, 03 Aug 2021 17:05:04 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>Pally</dc:creator>
        <guid isPermaLink="false">69280@/forums/discussions</guid>
        <description><![CDATA[<p>i have html datatable like this</p>

<pre><code>&lt;table id='tblIndividualTransaction'&gt;
            &lt;thead&gt;
                &lt;tr&gt;
                    &lt;td rowspan="2"&gt;&lt;input id='checkAll' type="checkbox"/&gt;&lt;/td&gt;
                    &lt;td rowspan="2"&gt;CIF No&lt;/td&gt;
                    &lt;td rowspan="2"&gt;Customer Name&lt;/td&gt;
                    &lt;td rowspan="2"&gt;Kegiatan Usaha&lt;/td&gt;
                    &lt;td rowspan="2"&gt;Latest Assets&lt;/td&gt;
                    &lt;td rowspan="2"&gt;Source Of Fund&lt;/td&gt;
                    &lt;td rowspan="2"&gt;Portofolio (IDR)&lt;/td&gt;
                    &lt;td colspan="4"&gt;Transaction Frequency&lt;/td&gt;
                    &lt;td colspan="3"&gt;Transaction Amount (IDR)&lt;/td&gt;
                    &lt;td rowspan="2"&gt;Transaction Analysis&lt;/td&gt;
                    &lt;td rowspan="2"&gt;DECISION&lt;/td&gt;
                &lt;/tr&gt;
                &lt;tr&gt;
                    &lt;td&gt;Buy&lt;/td&gt;
                    &lt;td&gt;Sell&lt;/td&gt;
                    &lt;td&gt;Total&lt;/td&gt;
                    &lt;td&gt;Form&lt;/td&gt;
                    &lt;td&gt;AVG Buy&lt;/td&gt;
                    &lt;td&gt;AVG Sell&lt;/td&gt;
                    &lt;td&gt;Total AVG&lt;/td&gt;
                &lt;/tr&gt;
            &lt;/thead&gt;
        &lt;/table&gt;
</code></pre>

<p>and initialize it at js</p>

<pre><code>var dataTable = $("#tblIndividualTransaction").dataTable({
"bJQueryUI": true,
"bLengthChange": true,
"bDestroy":true,
"sPaginationType": "full_numbers",
"bSort": false,
"bScrollCollapse": true
});
</code></pre>

<p>but it it shown error :</p>

<p>Uncaught TypeError: Cannot set property '0' of undefined - jquery.dataTables-1.8.1.min.js:117</p>

<p>i was following this doc ,<br />
<a rel="nofollow" href="https://datatables.net/examples/basic_init/complex_header.html">https://datatables.net/examples/basic_init/complex_header.html</a></p>

<p>So what did i do wrong ??</p>

<p>Thank you,</p>
]]>
        </description>
    </item>
    <item>
        <title>Shoiw row drop down and search box are not showing in the same line. Search goes to the next line.</title>
        <link>https://datatables.net/forums/discussion/69275/shoiw-row-drop-down-and-search-box-are-not-showing-in-the-same-line-search-goes-to-the-next-line</link>
        <pubDate>Tue, 03 Aug 2021 13:28:18 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>vriddhisolution</dc:creator>
        <guid isPermaLink="false">69275@/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>
]]>
        </description>
    </item>
    <item>
        <title>how to get the values of a multiple array with click</title>
        <link>https://datatables.net/forums/discussion/69268/how-to-get-the-values-of-a-multiple-array-with-click</link>
        <pubDate>Mon, 02 Aug 2021 09:59:11 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>James@34</dc:creator>
        <guid isPermaLink="false">69268@/forums/discussions</guid>
        <description><![CDATA[<p>I want to retrieve the values of the different rows at the click in a multiple table and save them in a table</p>
]]>
        </description>
    </item>
    <item>
        <title>Modal is working on only first 10 rows of the datatable</title>
        <link>https://datatables.net/forums/discussion/69233/modal-is-working-on-only-first-10-rows-of-the-datatable</link>
        <pubDate>Fri, 30 Jul 2021 05:41:35 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>sedategoofi</dc:creator>
        <guid isPermaLink="false">69233@/forums/discussions</guid>
        <description><![CDATA[<p>Hi.</p>

<p>First of all i appreciate and admire the work by the team for this support and providing the useable datatable.<br />
Thmbs up!</p>

<p>I am using datatable api, All the functions I want to use are working properly except one issue.</p>

<p>While connecting my link in a row of the datatable to modal class, only first rows are responding for the modal and displaying it properly, rest of the rows from 11 to end whatever the number is not showing modal.</p>

<p>My code for the function of scrolling and search is as follows.</p>

<p>$(document).ready(function() {<br />
    var table = $('#example').DataTable({</p>

<pre><code>    scrollX: true,

    "scrollY": "350px",
    "scrollCollapse": true,
    "paging": true,




    initComplete: function() {
        $('div.dataTables_scrollHeadInner thead tr#filterboxrow th').each(function() {
            $(this).html('&lt;input id="input' + $(this).index() +
                    '" type="text" class="form-control" placeholder="filter by ' + $(
                        this).text() + '" /&gt;')
                .css('padding-left', '4px');
            $(this).on('keyup change', function() {
                var val;

                if ($(this).index() === 0) {
                    val = $('.DTFC_Cloned #input' + $(this).index()).val();
                } else {
                    val = $('#input' + $(this).index()).val();
                }

                table.column($(this).index()).search(val).draw();
            });
        });
    }
});
</code></pre>

<p>});</p>

<p>Function for modal I am using following:</p>

<p>$(document).ready(function() {<br />
        $('.updatestaffmodalbtn').on('click', function() {</p>

<pre><code>        $('#updatestaffmodal').modal('show');

        $tr = $(this).closest('tr');
        var data = $tr.children("td").map(function() {

            return $(this).text();
        }).get();

        console.log(data);

        $('#iimsid').val(data[1]);
        $('#IMS1clientname').val(data[2]);
        $('#IMS4staffname').val(data[3]);
    });
});
</code></pre>

<p>Once again thank you for the forum to solve our issues and help us.<br />
Regards</p>
]]>
        </description>
    </item>
    <item>
        <title>How to check/uncheck all checkboxes with pagination</title>
        <link>https://datatables.net/forums/discussion/68820/how-to-check-uncheck-all-checkboxes-with-pagination</link>
        <pubDate>Wed, 23 Jun 2021 07:50:34 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>awfjfiq</dc:creator>
        <guid isPermaLink="false">68820@/forums/discussions</guid>
        <description><![CDATA[<p>Hello, i'am working on a very old project using datatables version 1.8.1. So i'am wondering how can i check/uncheck all checkboxes which are on multiple page. I'am using ajax-source to rendering the table and the bServerSide is set to true.</p>

<p><code>$('form table input[name="check_all"]').on('change', function() { $(this).closest('table').find('input[type="checkbox"]:not(:disabled)').prop('checked', $(this).prop('checked')); });</code></p>

<p>This code help me to select all checkbox on the current page only. What i want is to select all checkboxes.</p>

<p>I found the code below on the forum but its shows an error that dt.rows() is not a function maybe due to version difference ?<br />
<code>dt.rows().nodes().to$().find</code></p>

<p>Thanks in advance for your help,</p>
]]>
        </description>
    </item>
    <item>
        <title>rawCallback color condition counter</title>
        <link>https://datatables.net/forums/discussion/68693/rawcallback-color-condition-counter</link>
        <pubDate>Mon, 14 Jun 2021 05:13:22 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>BhavinBhatt</dc:creator>
        <guid isPermaLink="false">68693@/forums/discussions</guid>
        <description><![CDATA[<p>, 'rowCallback': function (nRow, nData)<br />
                                                {<br />
                                                    var intVal = function (i) {<br />
                                                        return typeof i === 'string' ?<br />
                                                            i.replace(/[\$,]/g, '') * 1 :<br />
                                                            typeof i === 'number' ?<br />
                                                            i : 0;<br />
                                                    }<br />
                                                    if (intVal(nData[6]) &lt; 3.00 &amp;&amp; intVal(nData[6]) != 0.00) {<br />
                                                        //$(nRow).css('background-color', '#FF0000');<br />
                                                        $(nRow).css('background-color', '#E74C3C');<br />
                                                        $(nRow).css('color', 'white');<br />
                                                        //$(nRow).find('td:eq(10)').css('background-color', 'red');<br />
                                                    }<br />
                                                    else if (intVal(nData[6]) &lt;= 5.00 &amp;&amp; intVal(nData[6]) != 0.00) {<br />
                                                        //$(nRow).css('background-color', '#FF0000');<br />
                                                        $(nRow).css('background-color', '#5E96FF');<br />
                                                        $(nRow).css('color', 'white');<br />
                                                        //$(nRow).find('td:eq(10)').css('background-color', 'red');<br />
                                                    }<br />
                                                    else if (intVal(nData[6]) &gt; 5.00 &amp;&amp; intVal(nData[6]) != 0.00) {<br />
                                                        //$(nRow).css('background-color', '#FF0000');<br />
                                                        $(nRow).css('background-color', '#05AC00');<br />
                                                        $(nRow).css('color', 'white');<br />
                                                        //$(nRow).find('td:eq(10)').css('background-color', 'red');<br />
                                                    }<br />
                                                }</p>

<p>now I wanna put number of rows based on above 3 conditions... in a tr. it should also work with search.</p>
]]>
        </description>
    </item>
    <item>
        <title>add new row  - new data for input</title>
        <link>https://datatables.net/forums/discussion/68287/add-new-row-new-data-for-input</link>
        <pubDate>Wed, 12 May 2021 09:53:11 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>meier_999</dc:creator>
        <guid isPermaLink="false">68287@/forums/discussions</guid>
        <description><![CDATA[<p>Hello together,</p>

<p>I am using DataTable 1.8. In the table are input fields which are filled via Ajax. Filling the fields works very well.<br />
I want the user to add a new row. This does not work, the data is not displayed.</p>

<pre><code>$('#addRow').on('click', function () {
    var t = $('#test').DataTable();
    var obj ='{"data":[{"DT_RowId":"1","pos":"2","price":"10.00"}]}'
    t.row.add(obj).draw();
});
</code></pre>

<p>How can I insert data into input fields? A new row is inserted with the content "undefined".<br />
thanks</p>
]]>
        </description>
    </item>
    <item>
        <title>Pug Datatables Uncaught ReferenceError: $ is not defined</title>
        <link>https://datatables.net/forums/discussion/67990/pug-datatables-uncaught-referenceerror-is-not-defined</link>
        <pubDate>Mon, 19 Apr 2021 17:20:56 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>shi_ro</dc:creator>
        <guid isPermaLink="false">67990@/forums/discussions</guid>
        <description><![CDATA[<p>Hi,</p>

<p>I am trying to use datatables with pug but * i keep getting an error</p>

<pre><code>Uncaught ReferenceError: $ is not defined
</code></pre>

<p>I am using datatables locally and my code looks like this:</p>

<pre><code>extends layout/base

block content

    #heading
      h1.text-center IL Clients

    #content
    //- Do it like this...You're already in JavaScript land after the -
    - var items = rows

      script.
        $(document).ready(function() {
          $('#resultTable').DataTable({
            "order": [[ 0, "desc" ]]
            });
        });
      
      div
        div

          table#resultTable.table.thead-light 
            thead 
              tr: th Clien Number
                  th Gender 
                  th Marital Status
                  th Phone Number 
                  th Group  
            tbody 
              each item in items

                tr 
                  td=item.clinic_number
                  td=item.gender
                  td=item.marital
                  td=item.phone_no
                  td=item.group_id
               
</code></pre>

<p>I have also tried moving the js script part below but nothing works. Any advise/recommendations will be appreciated.</p>
]]>
        </description>
    </item>
    <item>
        <title>show sum of value values in one row</title>
        <link>https://datatables.net/forums/discussion/59788/show-sum-of-value-values-in-one-row</link>
        <pubDate>Sat, 04 Jan 2020 15:25:39 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>saee2838</dc:creator>
        <guid isPermaLink="false">59788@/forums/discussions</guid>
        <description><![CDATA[<p>hi<br />
I'm going to design a sports table<br />
Where the results of several rounds of athlete competitions are aggregated and the athletes are sorted by the sum of the multiple stages.<br />
You can send me a clear example.<br />
Thankful</p>
]]>
        </description>
    </item>
    <item>
        <title>Date search not working when using Server Side</title>
        <link>https://datatables.net/forums/discussion/57566/date-search-not-working-when-using-server-side</link>
        <pubDate>Mon, 05 Aug 2019 15:18:07 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>daveng</dc:creator>
        <guid isPermaLink="false">57566@/forums/discussions</guid>
        <description><![CDATA[<p>I have a table containing about 200 000 rows, so I need to use Server Side.<br />
I have a column with a date (stored as datetime in a SQL Server) but displayed as d/M/yyyy in the table.<br />
If I do a search for a date, it won't work (it works if I turn off server side, using a smaller dataset). I'm guessing that not using server side, the search will try to match the string inside the code and using server side, it will so a sql query where the date typed in the search field will not match the datetime format.<br />
I've tried typing the date in datetime format, it doesn't work either.</p>

<p>We do have some conversion taking place, so when the we add/update a row using d/M/yyyy format, it will convert it and store it as a regular datetime in the SQL Server.</p>

<p>Here's what we have in the C# code regarding this particular column:</p>

<pre><code>.Field(new Field($"{certificationsDBSetName}.InvoicingDate")
                            .SetFormatter(Extensions.ParseStringToDateTime("d/M/yyyy", true))
                            .GetFormatter(Extensions.ParseDateTimeToString("d/M/yyyy"))
                    )
</code></pre>

<p>With the following functions:</p>

<pre><code>public static Func&lt;object, Dictionary&lt;string, object&gt;, object&gt; ParseStringToDateTime(string format, bool onlyDate = false)
        {
            return (val, data) =&gt;
            {
                if (string.IsNullOrWhiteSpace(val.ToString()))
                    return null;

                DateTime dateTime;
                DateTime.TryParseExact(val.ToString(), format, CultureInfo.InvariantCulture, DateTimeStyles.None, out dateTime);
                //DateTime.ParseExact(val.ToString(), format, CultureInfo.InvariantCulture);

                if (onlyDate)
                    return dateTime.Date;

                return dateTime;
            };
        }

        public static Func&lt;object, Dictionary&lt;string, object&gt;, object&gt; ParseDateTimeToString(string format)
        {
            return (val, data) =&gt; val != null ? ((DateTime)val).ToString(format, CultureInfo.InvariantCulture) : val;
        }
</code></pre>

<p>Is there a way to make the search work (at this point we only need exact date search, not range)</p>

<p>Thanks for any help!</p>
]]>
        </description>
    </item>
    <item>
        <title>Getting "Cannot update identity column" error when I'm not trying to update an identity column</title>
        <link>https://datatables.net/forums/discussion/56345/getting-cannot-update-identity-column-error-when-im-not-trying-to-update-an-identity-column</link>
        <pubDate>Fri, 17 May 2019 03:54:45 +0000</pubDate>
        <category>DataTables 1.8</category>
        <dc:creator>dorjragchaa</dc:creator>
        <guid isPermaLink="false">56345@/forums/discussions</guid>
        <description><![CDATA[<p>Dears</p>

<p>Getting "Cannot update identity column" error when I'm not trying to update an identity column how to fix it ?</p>

<p><img src="https://datatables.net/forums/uploads/editor/gi/91l4v2bvc8lm.png" alt="" title="" /></p>
]]>
        </description>
    </item>
   </channel>
</rss>
