Open FraserChapman opened 8 years ago
Hi, I had similarly problem. I had in column strings, and next after added number i got error "bAttr.toLowerCase(); is not a function".
I made little change in code (line 912 and 913):
aAttr = aAttr.toLowerCase(); bAttr = bAttr.toLowerCase();
change to this:
aAttr = aAttr.toString().toLowerCase(); bAttr = bAttr.toString().toLowerCase();
About your problem, add before 912 line:
if(typeof aAttr == 'undefined') aAttr = "";
else if(aAttr == null) aAttr = "";
When a column contains a null value the error is thrown when that column is sorted.
jquery.dynatable.js:923 Uncaught TypeError: Cannot read property 'toLowerCase' of null