Type detection in fnAddData/fnUpdate
Type detection in fnAddData/fnUpdate

In my column definitions I provide custom rendering callbacks (via fnRender property). I want to pass an object as my data and use my fnRender functions to convert to a string.
However, DataTables uses typeof mData == "object" to detect for arrays which is wrong as it will also be true for plain objects {var: "value"}.
Solution: Use jQuery's $.isArray(mData) instead.
However, DataTables uses typeof mData == "object" to detect for arrays which is wrong as it will also be true for plain objects {var: "value"}.
Solution: Use jQuery's $.isArray(mData) instead.
This discussion has been closed.
Replies
Allan