Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 1816

Broke when I added sname to get colreorder working... Looks like it matches to me...

$
0
0
Error: DataTables warning (table id = 'customers'): Requested unknown parameter '0' from the data source for row 0

Creating the datatable:
var oTable = $('#customers').dataTable({
                "sDom": 'CRT<"clear">lfrtip',
                "oTableTools": {
                    "sSwfPath": "/resources/global/lib/dataTables/swf/copy_csv_xls_pdf.swf"
                },
                "bProcessing": true,
                "bServerSide": true,
                "bStateSave": true,
                "aaSorting": [[1, "asc"]],
                "sAjaxSource": "/private/customer_leads/datatable_index",
                "sScrollX": "100%",
                "bScrollCollapse": true,
                "aoColumns": [
                    {"sName": "primary_agent"},
                    {"sName": "customers_full_name"},
                    {"sName": "customers_birthday"},
                    {"sName": "customers_company"},
                    {"sName": "customers_home_phone"},
                    {"sName": "customers_cell_phone"},
                    {"sName": "customers_assistant_phone"},
                    {"sName": "customers_email_address"},
                    {"sName": "customers_primary_address"},
                    {"sName": "customers_primary_city"},
                    {"sName": "customers_primary_state"},
                    {"sName": "customers_primary_zip"},
                    {"sName": "control_reassign"},
                    {"sName": "control_reassignA"}
                ],
                
                "oLanguage": {"sSearch": "Search customer name:"}
            });

JSON from server:


/ignore.. see comment below

Viewing all articles
Browse latest Browse all 1816

Trending Articles