<?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.10 — DataTables forums</title>
        <link>https://datatables.net/forums/</link>
        <pubDate>Fri, 10 Apr 2026 22:34:58 +0000</pubDate>
        <language>en</language>
            <description>DataTables 1.10 — DataTables forums</description>
    <language>en</language>
    <atom:link href="https://datatables.net/forums/categories/datatables-1-10/feed.rss" rel="self" type="application/rss+xml"/>
    <item>
        <title>Are there any examples of custom layouts employing the modal as "Side Panel (inline) Editor"?</title>
        <link>https://datatables.net/forums/discussion/80882/are-there-any-examples-of-custom-layouts-employing-the-modal-as-side-panel-inline-editor</link>
        <pubDate>Wed, 30 Apr 2025 13:18:41 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>rmeetin</dc:creator>
        <guid isPermaLink="false">80882@/forums/discussions</guid>
        <description><![CDATA[<p>By default DTE uses a modal editor. We would like to know if there is a way to change this layout so that the the editor is displayed inline or like a side panel (right side) and displays as an inline type editor. When you like on a row in the left column (to edit) it will load it in the inline editor. See the image as an example of this view:</p>

<p><img src="https://datatables.net/forums/uploads/editor/2y/pej58e93q4n5.png" alt="" title="" /></p>
]]>
        </description>
    </item>
    <item>
        <title>Dynamically assign column headers</title>
        <link>https://datatables.net/forums/discussion/81094/dynamically-assign-column-headers</link>
        <pubDate>Sat, 28 Jun 2025 16:23:54 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>NoBullMan</dc:creator>
        <guid isPermaLink="false">81094@/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>:<br />
I have a dataset, based on an Oracle query, where column names and counts might change.<br />
Is there a way to create a jQuery datatable based on this changing dataset?<br />
I don't want to manually add/remove/update column headers as query gets updated.</p>

<p>Dataset is result of a query like this:</p>

<pre><code>select metric,
listagg(case when site_name = 'X' then TS end) X,
listagg(case when site_name = 'Y' then TS end) Y
from whatever;
</code></pre>

<p>With dataset looking like:</p>

<pre><code>metric    X    Y
blah      1    4
</code></pre>

<p>And later it might have an added column:</p>

<pre><code>select metric,
listagg(case when site_name = 'X' then TS end) X,
listagg(case when site_name = 'Y' then TS end) Y,
listagg(case when site_name = 'Z' then TS end) Z
from whatever;
</code></pre>

<p>resulting in:</p>

<pre><code>metric    X    Y    Z
blah      1    4    2
</code></pre>

<p>I know I can change column header if I know what it is, like:</p>

<pre><code>$(document).ready(function () {
    vat table = $('#example').DataTable()'

    $('#example thead th:eq(0)').html('new column header');
}
</code></pre>
]]>
        </description>
    </item>
    <item>
        <title>Can SearchPanes act more like drop downs?</title>
        <link>https://datatables.net/forums/discussion/81032/can-searchpanes-act-more-like-drop-downs</link>
        <pubDate>Wed, 11 Jun 2025 15:56:18 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>wadeparallon</dc:creator>
        <guid isPermaLink="false">81032@/forums/discussions</guid>
        <description><![CDATA[<p>I couldn't find anything in the docs to allow this. Obviously it'd need to be sticky until collapsed for multi-selection...</p>

<p>Example:<br />
<img src="https://datatables.net/forums/uploads/editor/82/93bm08d39a1k.png" alt="" title="" /></p>

<p>Another option is to not have the box be a set height? I only have two options and its pushing an entire row down... lots of white UI space. I got 10 filters, 5 on each row. Pushes a lot of content down.</p>
]]>
        </description>
    </item>
    <item>
        <title>Table.Cell() resetting tab focus</title>
        <link>https://datatables.net/forums/discussion/81044/table-cell-resetting-tab-focus</link>
        <pubDate>Sun, 15 Jun 2025 02:44:49 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>wadeparallon</dc:creator>
        <guid isPermaLink="false">81044@/forums/discussions</guid>
        <description><![CDATA[<p><strong>Link to test case</strong>:  Having trouble creating the same test with the site as we're populated with ajax JS</p>

<p><strong>Description of problem</strong>: We've created an form very similar to <a rel="nofollow" href="https://datatables.net/examples/api/form.html">https://datatables.net/examples/api/form.html</a></p>

<p>We've got several calculated columns being show in another column based on the the inputs give. We've created an onblur that does some calculations and populates via:</p>

<pre><code>table.cell(rowIndex, 4).data(newValue);
table.draw(false);
</code></pre>

<p>The issue we're having is that every time we tab from ANY of the fields, the tab goes back and highlights the first form field in the first row. We essentially can't tab off of it.</p>

<p>Let me say that we've commented out the <code>table.cell().data()</code> and we <em>can</em>. I even left the <code>table.draw()</code> in there to make sure the draw wasn't resetting the focus. Anytime we use <code>table.cell().data()</code> it sticks the focus on the first field. I couldn't find anything in the documentation about updating the cell causing focus issues or draws.. so I'm stumped.</p>
]]>
        </description>
    </item>
    <item>
        <title>reset on a copied data table</title>
        <link>https://datatables.net/forums/discussion/81013/reset-on-a-copied-data-table</link>
        <pubDate>Fri, 06 Jun 2025 09:50:24 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>rf1234</dc:creator>
        <guid isPermaLink="false">81013@/forums/discussions</guid>
        <description><![CDATA[<p><a rel="nofollow" href="https://datatables.net/reference/api/colReorder.reset()">https://datatables.net/reference/api/colReorder.reset()</a></p>

<p>I have the following use case:<br />
Send all data of the selected data table row to the server using buttons.exportData() in original column sequence.<br />
<a rel="nofollow" href="https://datatables.net/reference/api/buttons.exportData()">https://datatables.net/reference/api/buttons.exportData()</a></p>

<p>colReorder.reset() restores the original column sequence easily, BUT: I don't want this to be done on the original data table that the user is seeing on the screen but on a copy of the data table, so that the user experience isn't being influenced.</p>

<p>I tried copying the DT using $.extend(true, {} ... also $.extend(true, [] ... etc.</p>

<p>Here are some examples</p>

<pre><code>var copiedDT = $.extend(true, [], originalDT);
or
var copiedDT = $.extend(true, {}, originalDT);
or
var copiedDT = $.extend(true, [], originalDT.columns().data().toArray());
or
var copiedDT = originalDT.slice();
Then I did:
copiedDT.colReorder.reset();
</code></pre>

<p>In all cases the result was that BOTH data tables were reset. I couldn't dissolve the connection between the two dts.</p>

<p>Is there any way to do this? I use $.extend a lot and it has been working fine, e.g. with options objects, custom buttons and the like.</p>
]]>
        </description>
    </item>
    <item>
        <title>Dynamic column rendering</title>
        <link>https://datatables.net/forums/discussion/80912/dynamic-column-rendering</link>
        <pubDate>Sun, 11 May 2025 05:49:03 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>NoBullMan</dc:creator>
        <guid isPermaLink="false">80912@/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>:<br />
I am creating a datatable dynamically using various datasets as data source.</p>

<p>Something like below where I get the data using various web service calls that return JSON data:</p>

<pre><code>function renderTable(url, params) {
    $.ajax({
        ....
        url: url,
        data: params
    }).done(function(result) {
        ....
        jResult = JSON.parse(result.d);

        if (jResult.length &gt; 0) {
            // Dynamically extract column names from the data
            var columnNames = Object.keys(jResult[0]);

            // Define columns for DataTable
            var columns = columnNames.map(function (columnName) {
                return {
                    data: columnName,
                    title: columnName // Use the column name as the title
                 };
            });
            if (isDataTable()) { // checks if #centMonDataTable is a defined datatable
                $('#centMonDataTable').DataTable().destroy();
                $('#centMonDataTable').empty();
            }
            // Initialize DataTable
            tblCentMonData = $("#centMonDataTable").DataTable({
                jQueryUI: true,
                data: jResult,
                columns: columns
            });
        }
</code></pre>

<p>My question is how do I apply custom rendering columns based on above code?<br />
In one dataset, column one might be integer that I would need to apply number formatting; but in the next dataset column one could be a timestamp that I would need to apply moment function to it.</p>
]]>
        </description>
    </item>
    <item>
        <title>Download API when using server side processing</title>
        <link>https://datatables.net/forums/discussion/80679/download-api-when-using-server-side-processing</link>
        <pubDate>Fri, 07 Mar 2025 05:22:56 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>NoBullMan</dc:creator>
        <guid isPermaLink="false">80679@/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>:<br />
I read that when using server side processing, supplied export buttons can only export the current page (whatever is available client side). It also pointed that when using server side processing, I need to download a buttons extension (buttons.download.js). However, the sample uses "api/download" for url and in GitHub, where I downloaded js file, I don't see a <strong>download</strong> file or folder under api folder.</p>

<pre><code>var table = $('#example').DataTable({
    dom: 'Bfrtip',
    buttons: [
        {
            extend: 'download',
            url: '/api/download'
        }
    ]
});
</code></pre>

<p>I could not find any samples or examples of this file online.<br />
Can you point me in the right direction?</p>
]]>
        </description>
    </item>
    <item>
        <title>How can I get the sum of the first 5 rows?</title>
        <link>https://datatables.net/forums/discussion/80670/how-can-i-get-the-sum-of-the-first-5-rows</link>
        <pubDate>Wed, 05 Mar 2025 16:51:42 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>heizler</dc:creator>
        <guid isPermaLink="false">80670@/forums/discussions</guid>
        <description><![CDATA[<p>I have an example of how to sum a column of data on a page as well as the grand total but I need to get the total of the top 5 records, then the first 10 records and then the first 20. Can you point me in the right direction?</p>

<p><a rel="nofollow" href="https://live.datatables.net/cisixiyi/1/edit">https://live.datatables.net/cisixiyi/1/edit</a></p>
]]>
        </description>
    </item>
    <item>
        <title>Custom Toolbar Not Visible on Export</title>
        <link>https://datatables.net/forums/discussion/80602/custom-toolbar-not-visible-on-export</link>
        <pubDate>Tue, 18 Feb 2025 16:39:19 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>johnsonj</dc:creator>
        <guid isPermaLink="false">80602@/forums/discussions</guid>
        <description><![CDATA[<p>We have created two custom toolbars in version 1.10 of Datatables</p>

<p>Our code looks like this:</p>

<pre><code>  .DataTable({
      dom: '&lt;"toolbar"&gt;&lt;"toolbar2"&gt;Bfrtip',
      ...

     });

     $("div.toolbar").html('&lt;b&gt;THIS IS TOOLBAR!&lt;/b&gt;');
     $("div.toolbar2").html('&lt;b&gt;THIS IS TOOLBAR2!'&lt;/b&gt;');

</code></pre>

<p>When using buttons to export the report (print, pdf, excel, etc.) the toolbars are not included.</p>

<p>Is there a way to include the toolbars?</p>
]]>
        </description>
    </item>
    <item>
        <title>Styling DOM</title>
        <link>https://datatables.net/forums/discussion/80650/styling-dom</link>
        <pubDate>Sun, 02 Mar 2025 01:24:00 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>NoBullMan</dc:creator>
        <guid isPermaLink="false">80650@/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>:<br />
I am trying to put table information, 'i', on top right, above the table, so users can see count of records without having to scroll down.</p>

<p>I set the DOM to be:</p>

<pre><code>dom: "&lt;'row'&lt;col-sm-4'l&gt;&lt;'col-sm-4'B&gt;&lt;'col-sm-4'i&gt;&gt;"
</code></pre>

<p>However, I am having a hard time pushing table info text right.<br />
I added text-right, mr-2 to the style for 'i', it has no effect.</p>

<p>Seems the only way is to update datatable's own style:</p>

<pre><code>.datatable-wrapper .datatables-info {
    clear:both;
    float: right;  /* instead of float: left */
}
</code></pre>

<p>But I don't want this to be applied to all tables in the solution, even to all tables on the page; just one particular table.</p>
]]>
        </description>
    </item>
    <item>
        <title>Paging &amp; Column Visibility In Server Side</title>
        <link>https://datatables.net/forums/discussion/80633/paging-column-visibility-in-server-side</link>
        <pubDate>Wed, 26 Feb 2025 21:30:24 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>NoBullMan</dc:creator>
        <guid isPermaLink="false">80633@/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>:<br />
I have to display around 54,000 records and it seems server side processing is the way to do it. Unfortunately, I have never done this, so this is my first stab at jQuery Datatables and server side processing and running into some issues.<br />
I can get the data and display it but it only displays 25 record (default page size I set) and does not provide paging.</p>

<p>When I check the data being sent to data table I can see total records is at 53K+ and page size is 25, "data" contains array of 25 records but paging not showing up.</p>

<p>Another issue I am facing is that I set viability for columns 8, 9 and 10 to false but they are displayed anyways. I set it in columndef, as part of drwaCallback, as well as using column.visible(); none worked.</p>

<p>I googled the heck of these issue but nothing helped. I am hoping you can spot what I am doing wrong or missing.</p>

<pre><code>function bindSitesTable() {
    tblSites = $("#sitesTable").DataTable({
        serverSide: true,
        ajax: {
            url: '&lt;%= ResolveUrl("../WebService/IDC.asmx/GetSitesData") %&gt;',
            contentType: "application/json",
            type: "GET",
            dataType: "JSON",
            data: function (d) {
                return d;
            },
            //data: function (data) {  // I will have to use start and end date and time, once current issues are resolved
            //    // custom parameters to the data object
            //    data.StartDate = startDate;
            //    data.StartTime = startTime;
            //    data.EndDate = endDate;
            //    data.EndTime = endTime;
            //    return data;
            //},
            dataSrc: function (json) {
                json.draw = json.d.draw;
                json.recordsTotal = json.d.recordsTotal;
                json.recordsFiltered = json.d.recordsFiltered;
                json.data = json.d.data;
                var return_data = json;
                return return_data.data;
            }
        },
        jQueryUI: true,
        dom: '&lt;l&lt;t&gt;ip&gt;',
        order: [[2, 'asc'],[7, 'desc'],],
        autoWidth: true,
        paging: true,
        lengthMenu: [[25, 50, 100, -1], [25, 50, 100, "All"]],
        columns: [
            {
                data: "FDBID"
            }, {
                data: "OriginZip"
            }, {
                data: "SiteName"
            }, {
                data: "Address"
            }, {
                data: "CityState"
            }, {
                data: "ContactName"
            }, {
                data: "ContactPhone"
            }, {
                data: "LastUpdate",
                render: function (data, type, row) {
                    if (data == null) {
                        return '';
                    }
                    else {
                        if (data != '') {
                            return type === 'sort' ? data : moment(data).format('MM/DD/YYYY');
                        }
                    }
                    return data;
                }
            }, {
                data: "OriginID"
            }, {
                data: "ZIP"
            }, {
                data: "PlusFour"
            }
        ],
        columnDefs: [
            {
                targets: [8, 9, 10],
                visible: "false"
            }
        ],
        //drawCallback: function () {
        //    $('td:nth-child(8),th:nth-child(8)').hide();
        //    $('td:nth-child(9),th:nth-child(9)').hide();
        //    $('td:nth-child(10),th:nth-child(10)').hide();
        //},
        pageLength: 25,
        processing: true,
        deferRender: true,
    }).column([8,9,10]).visible(false);
}
</code></pre>

<p>in C# code:</p>

<pre><code>public class SiteDataTable
{
    public int draw {get; set;}
    public int recordsTotal {get; set;}
    public int recordsFiltered {get; set;}
    public List&lt;SiteInfo&gt; data {get; set;}
}

[WebMethod]
[ScriptMethod(UseHttpGet = true,ResponseFormat = ResponseFormat.Json)]
public object GetAtlasSitesData(int draw, int start, int length)
{
    int sortColumn = -1;
    string sortDirection = "asc";

    // only sort one column at a time
    if (HttpContext.Current.Request.QueryString["order[0][column]"] != null)
    {
        sortColumn = int.Parse(HttpContext.Current.Request.QueryString["order[0][column]"]);
    }
    if (HttpContext.Current.Request.QueryString["order[0][dir]"] != null)
    {
        sortDirection = HttpContext.Current.Request.QueryString["order[0][dir]"];
    }
    SiteDataTables result = new SiteDataTables();

    // Capture Jquery Datatables Plugin Properties.
    string search = HttpContext.Current.Request.Params["search[value]"];
    //string draw = HttpContext.Current.Request.Params["draw"];
    string order = HttpContext.Current.Request.Params["order[0][column]"];
    string orderDir = HttpContext.Current.Request.Params["order[0][dir]"];
    int startRec = Convert.ToInt32(HttpContext.Current.Request.Params["start"]);
    int pageSize = Convert.ToInt32(HttpContext.Current.Request.Params["length"]);

    int recFilter = 0;
    int totalRecords = 0;

    // Load data.
    List&lt;SiteInfo&gt; data = FilterData(ref totalRecords, ref recFilter, startRec, pageSize, search, sortColumn, orderDir);

    // Configure Jquery Datatable property Total record count property.
    //int totalRecords = data.Count;

    // Configure Jquery Datatable property Filter record count property after applying searching and sorting.
    recFilter = data.Count;

    // Apply server-side pagination.
    // ???

    // Mapping final configuration settings for Jquery Datatables plugin.
// When I put a breakpoint here, I see it get hit 3 times, all below values remain the same except draw changes from 1 to 2 to 3

    result.draw = Convert.ToInt32(draw);   // 1
    result.recordsTotal = totalRecords;       // 53926
    result.recordsFiltered = recFilter;          // 25
    result.data = data;                                 // Shows as "Count=25"

    // Return info.
    return result;
}

private static List&lt;SiteInfo&gt; FilterData(ref int recordTotal, ref int recordFiltered, int start, int length, string search, int sortColumn, string sortDirection)
{
    List&lt;SiteInfo&gt; _data = ABC.GetSitesDataList();
    List&lt;SiteInfo&gt; list = new List&lt;SiteInfo&gt;();

    if (string.IsNullOrEmpty(search))
    {
        list = _data;
    }
    else
    { 
        // Apply server-side data searching
        foreach (SiteInfo dataItem in list)
        {
            if (dataItem.SiteName.ToUpper().Contains(search.ToUpper()) ||
                dataItem.Address.ToString().Contains(search.ToUpper()) ||
                dataItem.CityState.ToString().Contains(search.ToUpper()) ||
                dataItem.ContactPhone.ToString().Contains(search.ToUpper()) ||
                dataItem.FDBID.ToString().Contains(search.ToUpper()) ||
                dataItem.LastUpdate.ToString().Contains(search.ToUpper()) ||
                dataItem.OriginZip.ToString().Contains(search.ToUpper()) ||
                dataItem.SiteName.ToString().Contains(search.ToUpper()))
            {
                list.Add(dataItem);
            }
        }
    }
    //// Apply server-side Sorting -- Is this the way to do it; seems cumbersome!
    if (sortColumn == 0)
    {// sort Name
        list.Sort((x, y) =&gt; SortString(x.FDBID, y.FDBID, sortDirection));
    }
    if (sortColumn == 1)
    {// sort Name
        list.Sort((x, y) =&gt; SortString(x.OriginZip, y.OriginZip, sortDirection));
    }
    if (sortColumn == 2)
    {// sort Name
        list.Sort((x, y) =&gt; SortString(x.SiteName, y.SiteName, sortDirection));
    }
    if (sortColumn == 3)
    {// sort Name
        list.Sort((x, y) =&gt; SortString(x.Address, y.Address, sortDirection));
    }
    if (sortColumn == 4)
    {// sort Name
        list.Sort((x, y) =&gt; SortString(x.CityState, y.CityState, sortDirection));
    }
    if (sortColumn == 5)
    {// sort Name
        list.Sort((x, y) =&gt; SortString(x.ContactName, y.ContactName, sortDirection));
    }
    else if (sortColumn == 6)
    {// sort Age
        list.Sort((x, y) =&gt; SortInteger(x.ContactPhone, y.ContactPhone, sortDirection));
    }
    else if (sortColumn == 7)
    {   // sort DoB
        list.Sort((x, y) =&gt; SortDateTime(x.LastUpdate, y.LastUpdate, sortDirection));
    }
    recordFiltered = list.Count;
    recordTotal = _data.Count;

    // get just one page of data
    list = list.GetRange(start, Math.Min(length, list.Count - start));

    return list;
}
</code></pre>
]]>
        </description>
    </item>
    <item>
        <title>Search specific columns</title>
        <link>https://datatables.net/forums/discussion/80620/search-specific-columns</link>
        <pubDate>Fri, 21 Feb 2025 23:40:14 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>NoBullMan</dc:creator>
        <guid isPermaLink="false">80620@/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>:<br />
I am using an external text box to search the datatable using:</p>

<pre><code>$('#tbSearch').keyup(function() {
    myTable.search($(this).val()).draw();
});
</code></pre>

<p>But this searches entire table and I was wondering if I can restrict it to search two columns.<br />
I am trying to search by site name or zip code, so just need to look at these two columns.</p>
]]>
        </description>
    </item>
    <item>
        <title>Target column filter inputs only</title>
        <link>https://datatables.net/forums/discussion/80618/target-column-filter-inputs-only</link>
        <pubDate>Fri, 21 Feb 2025 16:20:55 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>NoBullMan</dc:creator>
        <guid isPermaLink="false">80618@/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>:<br />
I use the following to clear input elements in column filter of header but this targets all input fields on the page and clears them all.</p>

<p>Is there a way to just target those elements in header column?</p>

<pre><code>function clearTable(){
    myTable.clear().search('').draw();
    myTable.columns().search('').draw();

    $('.filter th').each(function (i) {
        $("input[type='text']").each(function (){
            $(this).val('');
        })
    });
}
</code></pre>
]]>
        </description>
    </item>
    <item>
        <title>Multiple tables with column search</title>
        <link>https://datatables.net/forums/discussion/80570/multiple-tables-with-column-search</link>
        <pubDate>Mon, 10 Feb 2025 04:22:08 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>NoBullMan</dc:creator>
        <guid isPermaLink="false">80570@/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>:<br />
Can I have two different data tables in the same page with column filtering?<br />
I have two tables, both set up exactly the same (of course, with different columns) but only the first one shows the column filtering. The second one just shows cloned header row.</p>

<p>Also, how do you exclude some columns from filtering? I tried specifying column indexes to be excluded and when looping through column in initComplete, I check if index of current column being processed is in that array, skip the process. Doesn't seem to work.</p>
]]>
        </description>
    </item>
    <item>
        <title>Deprecated function</title>
        <link>https://datatables.net/forums/discussion/80541/deprecated-function</link>
        <pubDate>Mon, 03 Feb 2025 10:40:09 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>dg_datatables</dc:creator>
        <guid isPermaLink="false">80541@/forums/discussions</guid>
        <description><![CDATA[<p>A customer has been using Datatables 1.10 with the editor for almost 10 years. The PHP version has now been upgraded to PHP 8.2. I now receive a message about an outdated function in the "Format.php" file on line 66:</p>

<p><code>$date = \DateTime ($val);</code></p>

<p>Is there a workaround for this?</p>

<p>Thank you for your help.</p>
]]>
        </description>
    </item>
    <item>
        <title>Columns filtering and custom DOM</title>
        <link>https://datatables.net/forums/discussion/80528/columns-filtering-and-custom-dom</link>
        <pubDate>Thu, 30 Jan 2025 22:06:49 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>NoBullMan</dc:creator>
        <guid isPermaLink="false">80528@/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>: None<br />
<strong>Description of problem</strong>:<br />
I added column filtering and set it up in "initComplete" section. I also defined a div that contains a drop down list to allow users to filter based on one column.</p>

<p>The problem I am facing is one or the other shows up depending on how I declare the datatable.<br />
If I add the declaration in a function, say "bindMyDatatable()" and call it in document.ready portion, then column filtering appears but drop down won't. If I remove the function name and just declare the data table  definition, then drop down (custom DOM) appears but column filtering won't. Not sure how to fix it.</p>

<pre><code>$(documet).ready(function(){
    ...
    $("div.toolbar").html('markup for drop down');
    // setup column filtering
    $('#MyTable thead tr')
        .clone(true)
        .addClass('filters').
        .appendTo('#MyTable thead');

    bindMyTable();
    ...
});

function bindMyTable(){
    tblMyTable = $("MyTable").DataTable({
        ...
        dom:&lt;'row'&lt;col-md-2' l&gt;&lt;'col-md-2'&lt;\"toolbar\"&gt;&gt;&lt;...&gt;&gt;";
        ...
        initCompleter: function(){
            ...
        }
   });
</code></pre>

<p>This shows column filtering but not drop down in custom DOM.</p>

<p>If I comment out bindMyTable in document.ready, and remove "function bindMyTable(){" and just leave table definition, then custom DOM appears but column filtering won't.</p>
]]>
        </description>
    </item>
    <item>
        <title>display: table-header-group</title>
        <link>https://datatables.net/forums/discussion/73491/display-table-header-group</link>
        <pubDate>Tue, 26 Jul 2022 12:08:54 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>karmendra</dc:creator>
        <guid isPermaLink="false">73491@/forums/discussions</guid>
        <description><![CDATA[<p>Till now I have used <code>tfoot: {display: table-header-group}</code><br />
and it worked all fine for many years, table footer was displaying before body,<br />
but today when I did rerun my webpack, table footer is not shown before body anymore.</p>

<p><a rel="nofollow" href="https://datatables.net/forums/discussion/41960/best-way-to-place-footer-filter-bellow-header">https://datatables.net/forums/discussion/41960/best-way-to-place-footer-filter-bellow-header</a></p>

<p>Please suggest what has changed and how do I move my footer row before body now.</p>

<p>Thanks<br />
K</p>
]]>
        </description>
    </item>
    <item>
        <title>Triggering two refreshes with one click</title>
        <link>https://datatables.net/forums/discussion/80249/triggering-two-refreshes-with-one-click</link>
        <pubDate>Thu, 21 Nov 2024 10:21:39 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>martinconnollybart</dc:creator>
        <guid isPermaLink="false">80249@/forums/discussions</guid>
        <description><![CDATA[<p>Hi, I have a table which links to two other tables. I want a select on the first table to trigger loads on the other two tables. If I put both reloads (and supply the linking field value for the associated editor) in the on select event, only the first one happens.<br />
This is my code:</p>

<pre><code>    fundTable.on('select', function(){
                appTable.ajax.reload();
                appEditor.field('TApplications.funderid')
                    .def(fundTable.row({selected:true}).data().id);
                contactTable.ajax.reload();
                contactEditor.field('TFunderContacts.funderid')
                  .def(fundTable.row({selected:true}).data().id); 
            });
</code></pre>

<p>It doesn't matter which way round I put the two table reloads - only the first happens. Is there another way I should be doing this? Thanks.</p>
]]>
        </description>
    </item>
    <item>
        <title>Character set 'utf8mb3' not supported error</title>
        <link>https://datatables.net/forums/discussion/80044/character-set-utf8mb3-not-supported-error</link>
        <pubDate>Sun, 13 Oct 2024 18:41:16 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>dynasoft</dc:creator>
        <guid isPermaLink="false">80044@/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>: Hi, I keep getting the following error trying to post a simple numeric string to a VARCHAR field in msql:<br />
Character set 'utf8mb3' is not supported by .Net Framework<br />
Script for creating the field is:</p>

<pre><code>CREATE TABLE mytable (
  UserName varchar(25) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  Password varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,  
  PRIMARY KEY (ID),
  KEY Index_UserName (UserName) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=618 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
</code></pre>

<p>Error is triggered when i save a number instead of a string in userName. Password is not giving the issue</p>

<p>This is how i save usernames in my code:</p>

<pre><code>editor.Field(new Field("mytable.UserName")
    .Xss(false)
    .GetFormatter((val, data) =&gt; CommonUtilities.IsNullOrEmpty(CommonUtilities.ToString(val).Trim()) == true ? null : CommonUtilities.ToString(val).Trim())
    .Validator(Validation.Unique(new ValidationOpts
    {
        Message = lblo.lblUserNameHasAlreadyBeenTaken
    }))
    .SetFormatter((val, data) =&gt; CommonUtilities.IsNullOrEmpty(val) == true ? null : HttpUtility.HtmlDecode(CommonUtilities.ToString(val)))
);
</code></pre>

<p>Method CommonUtilities.ToString  just converts to string<br />
I have tried doing a conversion to string in initSubmit event:</p>

<pre><code>var userName = this.field('mydb.UserName').val();
if (IsNumeric1(userName)) {
    this.field('mydb.UserName').val(ToString(userName));  // Ensure numeric values are treated as strings
}
</code></pre>

<p>and even added a trigger in the db all to no avail:</p>

<pre><code>CREATE TRIGGER `convert_username_to_string`
BEFORE INSERT ON `mydb`.`mytable`
FOR EACH ROW
SET NEW.UserName = CAST(NEW.UserName AS CHAR);
</code></pre>

<p>The issue isn't with Mysql or the fact that I index the UserName as I have this elswhere with other tables and fields and saving numerics is fine. Please advise.</p>
]]>
        </description>
    </item>
    <item>
        <title>Error loading DataTables data on new server</title>
        <link>https://datatables.net/forums/discussion/80021/error-loading-datatables-data-on-new-server</link>
        <pubDate>Tue, 08 Oct 2024 17:16:07 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>paolocesari</dc:creator>
        <guid isPermaLink="false">80021@/forums/discussions</guid>
        <description><![CDATA[<p>Greetings to all,<br />
I would like to know if DataTables 1.10.18 and jQuery 3.3.1 work correctly with PHP 8.2 version and MySQL/MariaDB 10.11.6</p>

<p>Loading the page with DataTables on my new server I get the error<br />
<code>DataTables warning: table id=customer - Invalid JSON response. For more information about this error, please see http://datatables.net/tn/1</code></p>

<p>More specifically, the error is caused by<br />
<code>Deprecated: Creation of dynamic property DataTables\Database\DriverMysqlQuery::$_dbHost is deprecated in /Web/PMS/php/lib/Database/Query.php on line 55</code></p>

<p>Debugger says <code>Legacy DataTables - It looks like you are using a really old version of DataTables (1.10.18)</code></p>

<p>Thank you all for your advice.<br />
Paolo</p>
]]>
        </description>
    </item>
    <item>
        <title>Enabling bubble editor on multiple rows</title>
        <link>https://datatables.net/forums/discussion/79898/enabling-bubble-editor-on-multiple-rows</link>
        <pubDate>Mon, 23 Sep 2024 16:26:26 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>ctran2</dc:creator>
        <guid isPermaLink="false">79898@/forums/discussions</guid>
        <description><![CDATA[<p>Hi, I’m looking for advice on editing multiple rows using the Bubble editor. We have the following tables in SQL Server:</p>

<p>Question Table:</p>

<pre><code>QuestionId  QuestionText                                                                                            ParentQuestionId
1                   Did you eat lunch yesterday?                                                                    1
2                   If yes, what time?                                                                                  1
3                   If yes, what did you eat?                                                                           1
4                   Did you have dinner yesterday?                                                          4
5                   If yes, list the items you ate.                                                                 4
</code></pre>

<p>QuestionId is the primary key (PK).<br />
ParentQuestionId is a self-referencing foreign key (FK) to QuestionId.</p>

<p>Response Table:</p>

<pre><code>ResponseId  QuestionId  ResponseText    CustomerId
1                   1                   Yes                 1
2                   2                   12pm            1
3                   3                   Salmon          1
4                   4                   Yes                 1
5                   5                   Eggs, Spinach   1
6                   1                   Yes                 2
7                   2                   11pm            2
8                   3                   Hotpot          2
9                   4                   Yes                 2
10                  5                   Taco            2
</code></pre>

<p>ResponseId is the primary key (PK).<br />
QuestionId is a foreign key (FK) to the QuestionId field in the Question table.<br />
I’m seeking advice on how to enable multiple records that share the same ParentQuestionId to be editable in the same bubble editor window. For example:</p>

<p>If a user clicks on the record with QuestionId 1, the bubble editor should be enabled for QuestionId 1, 2, and 3.<br />
If a user clicks on the record with QuestionId 4, the bubble editor should be enabled for QuestionId 4 and 5.<br />
Additionally, if a user enters a response for QuestionId 1, they should be required to enter responses for its sub-questions (QuestionId 2 and 3).</p>

<p>I found some similar examples to implement parent/child edit like <a rel="nofollow" href="https://editor.datatables.net/examples/datatables/parentChild.html">https://editor.datatables.net/examples/datatables/parentChild.html</a> and <a rel="nofollow" href="https://editor.datatables.net/examples/advanced/parentChild.html">https://editor.datatables.net/examples/advanced/parentChild.html</a></p>

<p>However, I'm wondering if there's a simple way to display a bubble popup with onClick event where labels are QuestionText and names/ editable fields are ResponseText.</p>

<p>Any suggestions on how to achieve this?</p>
]]>
        </description>
    </item>
    <item>
        <title>How to "filter" table data by value?</title>
        <link>https://datatables.net/forums/discussion/79891/how-to-filter-table-data-by-value</link>
        <pubDate>Sun, 22 Sep 2024 21:05:21 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>sjordan</dc:creator>
        <guid isPermaLink="false">79891@/forums/discussions</guid>
        <description><![CDATA[<p>How can I "filter" table data?</p>

<p>Here is my <a rel="nofollow" href="https://codesandbox.io/p/sandbox/hungry-fog-3666vt" title="test case">test case</a>.</p>

<p>This is a simple, contrived example to illustrate the point. Using the select box at the top of the page, I want to "filter" for either families with the name of Smith or not.</p>

<p>In my test case, like the post <a rel="nofollow" href="https://datatables.net/forums/discussion/comment/161839/#Comment_161839" title="here on the forum">here on the forum</a>, I have impleted  filtering with the search api.</p>

<p>However, on two points, this is not the UX my users are expecting:</p>

<ol>
<li><p>Using the search API causes the value of the select to appear in the search box (see image below).</p></li>
<li><p>When users say filter, they mean it is the Excel use of the word. For example, when you apply a filter to an Excel column.</p></li>
</ol>

<p>Also, using my example, searching for values such that val == 'Smith' is easy. What is the implementation for val !== 'Smith'?</p>

<p>What is the recommended approach?</p>

<p>Thank you in advance</p>

<p><img src="https://datatables.net/forums/uploads/editor/3n/i222rscwbcw9.png" alt="" title="" /></p>
]]>
        </description>
    </item>
    <item>
        <title>Passing auxiliary data from server to client?</title>
        <link>https://datatables.net/forums/discussion/79889/passing-auxiliary-data-from-server-to-client</link>
        <pubDate>Sun, 22 Sep 2024 17:59:48 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>sjordan</dc:creator>
        <guid isPermaLink="false">79889@/forums/discussions</guid>
        <description><![CDATA[<p>In PHP and JS mixed environments, it's pretty common to see server data passed to the client JS view interpolation (see 'some_server_data' below in the first line of the sample below)</p>

<p>Then that value might be used later in Editor.</p>

<p>While this works, it feels messy and I have to assume there's a recommended way to add this auxiliary data to the payload received by DT on load.</p>

<p>What's the recommended API?</p>

<pre><code>&lt;script&gt;

      // some magic computed server data that is not user specific, not computed from user data.
      const some_server_data = &lt;?= $some_server_data ?&gt;

      $(document).ready(function () {
        const editor = new $.fn.dataTable.Editor({
          url: "./data/users.json",
          table: "#attendance",
          fields: [
            {
              label: "First name:",
              name: "users.first_name",
            },
            {
              label: "Last name:",
              name: "users.last_name",
              def: some_server_data
            },
            {
              label: "Phone #:",
              name: "users.phone",
            },
            {
              label: "Site:",
              name: "users.site",
              type: "select",
            },
            {
              label: "Color:",
              name: "users.color",
              type: "select",
            },
          ],
          table: "#users",
        });
         ...

      });
    &lt;/script&gt;
</code></pre>
]]>
        </description>
    </item>
    <item>
        <title>Displaying PDF and CSV buttons?</title>
        <link>https://datatables.net/forums/discussion/79888/displaying-pdf-and-csv-buttons</link>
        <pubDate>Sun, 22 Sep 2024 17:44:05 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>sjordan</dc:creator>
        <guid isPermaLink="false">79888@/forums/discussions</guid>
        <description><![CDATA[<p>Where have I messed up the syntax for PDF and CSV export in my <a rel="nofollow" href="https://codesandbox.io/p/sandbox/hungry-fog-3666vt" title="test case here">test case here</a>?</p>

<p>The buttons for PDF and exporting to CSV are not appearing.</p>

<p>Thank you</p>
]]>
        </description>
    </item>
    <item>
        <title>The "New" button or adding a record/row to table</title>
        <link>https://datatables.net/forums/discussion/79820/the-new-button-or-adding-a-record-row-to-table</link>
        <pubDate>Tue, 10 Sep 2024 14:45:37 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>sjordan</dc:creator>
        <guid isPermaLink="false">79820@/forums/discussions</guid>
        <description><![CDATA[<p>Unfortunately, our legacy site is not using DT2 and Editor v2 yet, so the layout config is not an option.</p>

<p>Can someone point me to a simple example of adding a new record to a DataTable using Editor v1?</p>

<p>Either the "new" button above the table OR dynamically adding a new editable row?</p>

<p>Thanks in advance</p>

<p>PS. One of the columns in the table is a select field, if that mattes. Meaning when the new record is created, one of the values will be selected from a list (ex. location)</p>
]]>
        </description>
    </item>
    <item>
        <title>Design Suggestion: Paginate over a subset of API data from an API with limited search/filter</title>
        <link>https://datatables.net/forums/discussion/79228/design-suggestion-paginate-over-a-subset-of-api-data-from-an-api-with-limited-search-filter</link>
        <pubDate>Tue, 18 Jun 2024 02:22:50 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>sjordan</dc:creator>
        <guid isPermaLink="false">79228@/forums/discussions</guid>
        <description><![CDATA[<p><strong>This question is more a request for a suggested design based on the community's experience.</strong></p>

<p>Essentially I need to paginate over a subset of API data from an API with limited search/filter and potentially large data volume.</p>

<p>Assume there is a service accessed via an API that has hundreds of records. The service returns pages of results 20 at a time (i.e. pagination). On my UI, I wish to display valid records from the records returned. However, not all records are valid and the API has essentially no filter feature.</p>

<p>The UI should always attempt to display 20 records even if another call to the API is needed. Calls to the API pass both a previous and a next page token. Can you suggest an ajax pagination strategy to display 20 valid records at a time, page for the additional records as needed and keep both the API calls and the UI display in sync while navigating to previous and next screens.</p>

<p>I'm considering on initial page load to grab a reasonably large number records from the API (ex. 500 records) on the server, filter server-side and pass valid records to the data option of the DataTables data source.</p>

<p>I'm hoping this not such a rare requirement.</p>
]]>
        </description>
    </item>
    <item>
        <title>JSON encoding error: Malformed UTF-8 characters, possibly incorrectly encoded</title>
        <link>https://datatables.net/forums/discussion/79607/json-encoding-error-malformed-utf-8-characters-possibly-incorrectly-encoded</link>
        <pubDate>Tue, 06 Aug 2024 15:43:26 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>rf1234</dc:creator>
        <guid isPermaLink="false">79607@/forums/discussions</guid>
        <description><![CDATA[<p><img src="https://datatables.net/forums/uploads/editor/fk/su34urmmbsuh.png" alt="" title="" /></p>

<p>This is the error I am getting.</p>

<p>I am using this version of Data Tables:<br />
<a rel="nofollow" href="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js">https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js</a></p>

<p>I use Editor with PHP, version is 2.0.7</p>

<p>The browser's console shows the following error:<br />
<img src="https://datatables.net/forums/uploads/editor/xd/zup6l8z8byt4.png" alt="" title="" /></p>

<p>The problem occurs when PHP Editor tries to json_encode the data object. Editor crashes and I get the first error message above.</p>

<p>I checked on SO how to fix this and found this:<br />
<a rel="nofollow" href="https://stackoverflow.com/questions/46305169/php-json-encode-malformed-utf-8-characters-possibly-incorrectly-encoded">https://stackoverflow.com/questions/46305169/php-json-encode-malformed-utf-8-characters-possibly-incorrectly-encoded</a></p>

<p>Hence I added this on "postGet" and tried both versions (looping through $data myself or let PHP do it):</p>

<pre><code>-&gt;on( 'postGet', function ( $e, &amp;$data, $id ) { 
//        foreach ($data AS $key =&gt; $val) {
//            $data[$key] = mb_convert_encoding( $val, "UTF-8", "UTF-8" );
//        }
    $data = mb_convert_encoding( $data, "UTF-8", "UTF-8" );
})
-&gt;process($_POST);    
$editor-&gt;json();

</code></pre>

<p>In my debugger the $data object looked 100% fine and the mb_convert_encoding did not produce any errors in either version.</p>

<pre><code>$editor-&gt;json();
</code></pre>

<p>caused the crash.</p>

<p>How can I locate the problem? The console message doesn't allow me to locate anything: It is a location in a min-file. I wanted to the use the regular js file<br />
<a rel="nofollow" href="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.js">https://cdn.datatables.net/1.11.5/js/jquery.dataTables.js</a><br />
Surprisingly that produced errors in other parts of my code when executing. Strange.</p>

<p>This is all I get in the network tab as a server response. Pretty much useless unfortunately.</p>

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

<p>I also tried to repair the database table. But there was nothing wrong with it.</p>

<p><strong>I am stuck now and this is very, very urgent for me to fix: I cannot onboard new clients before this is fixed! I would be very grateful if you could help me with this.</strong></p>
]]>
        </description>
    </item>
    <item>
        <title>Classnames in columns not applied</title>
        <link>https://datatables.net/forums/discussion/79433/classnames-in-columns-not-applied</link>
        <pubDate>Thu, 18 Jul 2024 15:27:13 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>arnorbld</dc:creator>
        <guid isPermaLink="false">79433@/forums/discussions</guid>
        <description><![CDATA[<p>Hi guys,</p>

<p>I'm creating a new list with DataTables.  Everything is working, but for some reason, the classes that I specify in the "classname" property in the columns array are not applied to the columns.  This is the definition I have:</p>

<pre><code>columns: [
    {"data": "inv_number",          "classname": "row-inv_number",           "name": "inv_number",          "orderable" : true },
    {"data": "inv_date",            "classname": "row-inv_date",             "name": "inv_date",            "orderable" : true },
    {"data": "inv_description",     "classname": "row-inv_description",      "name": "inv_description",     "orderable" : true },
    {"data": "job_address",         "classname": "row-job_address",          "name": "job_address",         "orderable" : true },
    {"data": "inv_amount",          "classname": "row-inv_amount",           "name": "inv_amount",          "orderable" : true },
    {"data": "inv_duedate",         "classname": "row-inv_duedate",          "name": "inv_duedate",         "orderable" : true },
    {"data": "paid_amt_paid",       "classname": "row-paid_amt_paid",        "name": "paid_amt_paid",       "orderable" : true },
    {"data": "paid_payment_date",   "classname": "row-paid_payment_date",    "name": "paid_payment_date",   "orderable" : true },
    {"data": "paid_check_num",      "classname": "row-paid_check_num",       "name": "paid_check_num",      "orderable" : true },
    {"data": "paid_net_due",        "classname": "row-paid_net_due",         "name": "paid_net_due",        "orderable" : true },
    {"data": "actions",             "classname": "row-rowactionbuttons",     "name": "actions",             "orderable" : false}
],
</code></pre>

<p>When the list is loaded, none of the CSS classes are added:</p>

<pre><code>&lt;tr id="a060a9e7-7ff2-4e2f-8e0d-33bedbee403c" class="odd"&gt;
    &lt;td class="sorting_1"&gt;12341&lt;/td&gt;
    &lt;td&gt;02/28/2021&lt;/td&gt;
    &lt;td&gt;Test 2021 NEC&lt;/td&gt;
    &lt;td&gt;&lt;/td&gt;
    &lt;td&gt;3500.00&lt;/td&gt;
    &lt;td&gt;02/28/2021&lt;/td&gt;
    &lt;td&gt;3500.00&lt;/td&gt;
    &lt;td&gt;02/28/2021&lt;/td&gt;
    &lt;td&gt;12312&lt;/td&gt;
    &lt;td&gt;0.00&lt;/td&gt;
    &lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
</code></pre>

<p>I have quite a few other DT lists, but none of them have a problem with this and I'm not sure where this is getting lost...  I don't recall having had this problem before.  Any ideas?</p>

<p>One other question:<br />
I was playing with creating the columns as a separate array and then just assign them to the columns property,<br />
where dtColumns are created as:</p>

<pre><code>var dtColumns = [
    {"data": "inv_number",          "classname": "row-inv_number",           "name": "inv_number",          "orderable" : true },
    {"data": "inv_date",            "classname": "row-inv_date",             "name": "inv_date",            "orderable" : true },
    {"data": "inv_description",     "classname": "row-inv_description",      "name": "inv_description",     "orderable" : true },
    {"data": "job_address",         "classname": "row-job_address",          "name": "job_address",         "orderable" : true },
    {"data": "inv_amount",          "classname": "row-inv_amount",           "name": "inv_amount",          "orderable" : true },
    {"data": "inv_duedate",         "classname": "row-inv_duedate",          "name": "inv_duedate",         "orderable" : true },
    {"data": "paid_amt_paid",       "classname": "row-paid_amt_paid",        "name": "paid_amt_paid",       "orderable" : true },
    {"data": "paid_payment_date",   "classname": "row-paid_payment_date",    "name": "paid_payment_date",   "orderable" : true },
    {"data": "paid_check_num",      "classname": "row-paid_check_num",       "name": "paid_check_num",      "orderable" : true },
    {"data": "paid_net_due",        "classname": "row-paid_net_due",         "name": "paid_net_due",        "orderable" : true },
    {"data": "actions",             "classname": "row-rowactionbuttons",     "name": "actions",             "orderable" : false}
]
</code></pre>

<p>Then in the DT setup, rather than declaring the array there, I use:</p>

<pre><code>columns: dtColumns,
</code></pre>

<p>This doesn't work at all.  I would think it wouldn't make a difference.  No big deal, just curious if you have a comment on it <img src="https://datatables.net/forums/resources/emoji/smile.png" title=":)" alt=":)" height="20" /></p>

<p>Best regards,<br />
Arnor</p>
]]>
        </description>
    </item>
    <item>
        <title>Excel export with RowGroup</title>
        <link>https://datatables.net/forums/discussion/71503/excel-export-with-rowgroup</link>
        <pubDate>Thu, 03 Feb 2022 16:55:32 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>kthorngren</dc:creator>
        <guid isPermaLink="false">71503@/forums/discussions</guid>
        <description><![CDATA[<p>I found this <a rel="nofollow" href="https://datatables.net/forums/discussion/71484/separate-excel-sheet-for-each-row-grouping#latest">question</a> asking about exporting tables using the <a rel="nofollow" href="https://datatables.net/extensions/rowgroup">RowGroup extension</a> with each group on a different sheet interesting.  The question asked about using the <a rel="nofollow" href="https://datatables.net/forums/discussion/58998/excel-export-create-new-sheet-example#latest">Add a new sheet</a> example.  This example was created from code that F12Magic posted with a couple bugs fixed by others on the forum.  Combining the <a rel="nofollow" href="http://live.datatables.net/kuyayeto/9/edit">final fixed example</a> along with some code from this <a rel="nofollow" href="https://datatables.net/forums/discussion/58960/how-to-add-rows-to-excel-export-or-why-are-my-child-rows-not-exported#latest">thread</a> to customize the Sheet1 output resulted in this example:<br />
<a rel="nofollow" href="http://live.datatables.net/hemelesi/1/edit">http://live.datatables.net/hemelesi/1/edit</a></p>

<p>The <a rel="nofollow" href="//datatables.net/reference/api/rowGroup.dataSrc"><code title="DataTables API method">rowGroup.dataSrc</code></a> can be configured to support one or more levels of grouping.  This example supports exporting only the first group.  The <code>multiSheet</code> boolean variable controls whether the export is on one sheet or individual sheets for each group.</p>

<p>The example supports these standard button options:</p>

<pre><code>        title: '',
        header: true,
        messageTop: 'This is the top',
        messageBottom: 'This is the bottom',
        sheetName: 'Single Sheet',  // This is only used in singe sheet mode
        footer: true,

        exportOptions: {
          modifier: {
            search: 'applied', 
          }
        },
</code></pre>

<p>Use any desired <a rel="nofollow" href="//datatables.net/reference/type/selector-modifier"><code title="DataTables parameter type">selector-modifier</code></a>.  The above is just an example.</p>

<p>The only setting needed inside the customize function is this varaible:</p>

<pre><code>multiSheet = true;  // Export all groups in one sheet or multiple
</code></pre>

<p>Please make improvements to the code and post them here if you do.</p>

<p>Kevin</p>
]]>
        </description>
    </item>
    <item>
        <title>ssp setting a parameter from a column in array</title>
        <link>https://datatables.net/forums/discussion/79364/ssp-setting-a-parameter-from-a-column-in-array</link>
        <pubDate>Tue, 09 Jul 2024 15:17:44 +0000</pubDate>
        <category>DataTables 1.10</category>
        <dc:creator>bbrindza</dc:creator>
        <guid isPermaLink="false">79364@/forums/discussions</guid>
        <description><![CDATA[<p>I need to set a variable based on the the value of column in a ssp script , but for some reason it is not returning  the value.</p>

<pre><code><br />$outOfOffice = '';

$columns[] =  array( 'db' =&gt; 'OUT_OF_OFFICE', 'dt' =&gt; 'out_of_office',
    'formatter' =&gt; function($d, $row) use ($outOfOffice) {
        $outOfOffice = trim($row['OUT_OF_OFFICE']);
        return trim($row['OUT_OF_OFFICE']);
      }
    );

if($outOfOffice == 'Vacation Day'){

    $columns[] = array( 'db' =&gt; 'TOTAL_HOURS_SECONDS', 'dt' =&gt; 'total_vacation_hours',
        'formatter' =&gt; function($d, $row){
        
        $totalVacationhours   = floor($row['TOTAL_HOURS_SECONDS'] / 3600);
        return   $totalVacationhours;

        }
     );
    
}else if ($outOfOffice == 'Paid Leave Vacation'){
    
    $columns[] = array( 'db' =&gt; 'TOTAL_HOURS_SECONDS', 'dt' =&gt; 'total_paid_leave_vacation_hours',
        'formatter' =&gt; function($d, $row){
        
        $totalPaidLeaveVacationHours   = floor($row['TOTAL_HOURS_SECONDS'] / 3600);
        return   $totalPaidLeaveVacationHours;
        }
    );
}

</code></pre>
]]>
        </description>
    </item>
   </channel>
</rss>
