jquery.dataTable.min.js TypeError: d is undefined

jquery.dataTable.min.js TypeError: d is undefined

jerrycooper126@126.comjerrycooper126@126.com Posts: 1Questions: 1Answers: 0

http://editor.datatables.net/examples/styling/bootstrap.html#
My js:
$('#dt_basic').dataTable({
lengthChange: false,
ajax: "${pageContext.request.contextPath}/base/showOrganizations.json",
columns: [
{ data: "entityCode" },
{ data: "orgCode" },
{ data: "parentOrgCode" },
{ data: "orgName" },
{ data: "createDate"}
],
"sDom": "<'dt-toolbar'<'col-xs-12 col-sm-6'f><'col-sm-6 col-xs-12 hidden-xs'l>r>"+
"t"+
"<'dt-toolbar-footer'<'col-sm-6 col-xs-12 hidden-xs'i><'col-xs-12 col-sm-6'p>>",
"autoWidth" : true,
"preDrawCallback" : function() {
// Initialize the responsive datatables helper once.
if (!responsiveHelper_dt_basic) {
responsiveHelper_dt_basic = new ResponsiveDatatablesHelper($('#dt_basic'), breakpointDefinition);
}
},
"rowCallback" : function(nRow) {
responsiveHelper_dt_basic.createExpandIcon(nRow);
},
"drawCallback" : function(oSettings) {
responsiveHelper_dt_basic.respond();
}
});

My html :

entityCode orgCode parentOrgCode orgName createDate

Answers

  • allanallan Posts: 61,787Questions: 1Answers: 10,115 Site admin

    Per the forum rules, please link to a test case showing the issue. There is JSFiddle and http://live.datatables.net if you can't host an example page yourself.

    Allan

This discussion has been closed.