I am getting a style object null reference Why?
I am getting a style object null reference Why?
I am getting a style object null reference and determined that if I comment out ScrollX: true this javascript error goes away? I haved used this in other tables anyone ever see this specific error related to the scroll bars?
buildTableDefinitionForLevel: function(level) {
var tableDefinition = {
"columns": drilldownLevels[level].columns,
"data": this.state.levelData[level],
"info": false,
"pageLength": 200,
"bLengthChange": false,
"scrollX": true,
"scrollY": "330px",
"scrollCollapse": true,
"search": { "smart": false }
};
if (level < drilldownLevelCount - 1) {
tableDefinition.columnDefs = [
{
"render": function (data, type, row) {
return '<a href="#">' + data + '</a>';
},
targets: 0
}
];
}
if (level == 0) {
tableDefinition.columnDefs.push({ "type": "date-us", "targets": 0 });
}
if (drilldownLevels[level].hiddenColumns) {
tableDefinition.columnDefs.push({
"targets": drilldownLevels[level].hiddenColumns,
"visible": false,
"searchable": false
});
}
$.extend(tableDefinition, drilldownLevels[level].customTableDef);
return tableDefinition;
},
Answers