Uncaught TypeError: Cannot read property 'length' of undefined jquery.dataTables.min.js:39
Uncaught TypeError: Cannot read property 'length' of undefined jquery.dataTables.min.js:39
Hi Allan,
If I am sending no rows then it is not showing "No Data Available in Table" instead of that it is showing just processing.And If data available it is showing data but When user performs search if data is not available on that search then i'm getting this error is browser console and displaying data that found on up to the search. I am using server side but not ajax call every time I am performing operations on JsonArray which is of 3k records. Client side is not applicable for me.
Thank You
Answers
My guess is that it is sending
null
rather than an empty array for the data when there are no records, but without a test case it is impossible to say for sure.Allan
Issue Solved
By test case found that it is sending :- { }
Now it is working fine after changing and sending in this way : - {"recordsFiltered":0,"recordsTotal":0,"data":[]}
Thank You Allan