Sorting error on fnAddData
Sorting error on fnAddData
richcomptonWF
Posts: 7Questions: 0Answers: 0
If there are multiple tables on a page, sorting one table can cause an issue with adding data to the other. The following case can illustrate the issue. Table1 has 3 columns and Table2 has 4 columns. Sort the 4th column of Table2 and attempt to add data to Table1. It will result in the following error: "TypeError: Cannot read property 'sSortDataType' of undefined". This is because it is trying to sort the 4th column, however Table1 only has 3 columns. This is recreatable using the multiple tables example, eliminating the 4th column from one of the tables, sorting the other and adding data to the first.
This discussion has been closed.
Replies
Allan
If you click add it works as expected. Now cort the 4th column of the bottom table and click add.
Allan
Allan