"No data available in table" only showing on first column, until data is refreshed....

"No data available in table" only showing on first column, until data is refreshed....

luisrortegaluisrortega Posts: 79Questions: 6Answers: 1

Hi,

This is not a major issue, however I wonder if I'm doing something wrong... When the tables have no data on the initial request, the "No data available in table" message only shows in the first column... once the item has been refreshed (either by filter, or column click reorder), then the message appear across all columns...

Before refresh

After refresh

Replies

  • luisrortegaluisrortega Posts: 79Questions: 6Answers: 1

    few notes: The data is requested thru Ajax... There is no data with the data or functionality... it's mostly a visual issue.

  • luisrortegaluisrortega Posts: 79Questions: 6Answers: 1
                     $('#tbl-signal-notes'+rec.signal_id).DataTable( {
                            "processing": true,
                            "serverSide": true,
                            "pageLength": 10,
                            "order": [[ 1, "asc" ]],
                            "iDisplayLength": 20,
                            "sDom": "<'row'<'col-xs-6'BT><'col-xs-6'f>r>t<'row'<'col-xs-2'><'col-xs-10'p>>",
                            "buttons": [
    
                            ],
                            "ajax": {
                               "url": "/Data/Grids",
                               "data": function ( d ) {
                                    d.TableName = "v_customer_notes";
                                    d.FilterField = "customer_id";
                                    d.CustomerID = rec.customer_id;
                                    d.Type = "signal_notes";
                                }},
                            "aoColumns":
                            [
                            { "sTitle": "ID" ,"mData":"id","visible": false},
                            { "sTitle": "Priority" ,"mData":"priority","width": "75px"},
                            { "sTitle": "Notes" ,"mData":"note"}
                            ]
                        } );
    
  • allanallan Posts: 61,743Questions: 1Answers: 10,111 Site admin

    I think you might be using DataTables 1.10.11. Can you try the current 1.10.12 release which fixes that.

    Allan

  • luisrortegaluisrortega Posts: 79Questions: 6Answers: 1

    That was the problem!!! Thanks!!!

This discussion has been closed.