DataTables: Cannot read property style of undefined

前端 未结 11 764
时光取名叫无心
时光取名叫无心 2020-12-23 15:42

I am getting this error with the following:

jquery.dataTables.js:4089 Uncaught TypeError: Cannot read property \'style\' of undefined(…)
_fnCalculateColumnWi         


        
11条回答
  •  半阙折子戏
    2020-12-23 16:16

    The solution is pretty simple.

      

                    TASKLISTGRID = $("#TASK_LIST_GRID").DataTable({
                        data : response,
                        columns : columns.AdoptionTaskInfo.columns,
                        paging: true
                    });
                    
                    //Note: columns : columns.AdoptionTaskInfo.columns has at least a column not definded in the 

    Note: columns : columns.AdoptionTaskInfo.columns has at least a column not defined in the table head

提交回复
热议问题