KeyTable + external oLanguage file + _iDisplayEnd < _iDisplayLength
KeyTable + external oLanguage file + _iDisplayEnd < _iDisplayLength
grotibo
Posts: 2Questions: 0Answers: 0
Hi,
I have found a bug with KeyTable and the following specifications:
- having an external oLanguage file
- having less than 10 rows to print
With this options, you will get the error:
aoData is undefined (corresponding to the line 3036 of datatable.js)
(i'm working with the nightly versions of DataTables and KeyTable)
It seems to be due to the oSettings variable sends from KeyTable.js (line 454) which is instantiated with the default options (_iDisplayEnd = 10 so the loop line 3033 will get an error...).
I have resolved my problem by putting the KeyTable initialization into the fnInitComplete function of DataTables but maybe you have a better solution.
Regards,
I have found a bug with KeyTable and the following specifications:
- having an external oLanguage file
- having less than 10 rows to print
With this options, you will get the error:
aoData is undefined (corresponding to the line 3036 of datatable.js)
(i'm working with the nightly versions of DataTables and KeyTable)
It seems to be due to the oSettings variable sends from KeyTable.js (line 454) which is instantiated with the default options (_iDisplayEnd = 10 so the loop line 3033 will get an error...).
I have resolved my problem by putting the KeyTable initialization into the fnInitComplete function of DataTables but maybe you have a better solution.
Regards,
This discussion has been closed.
Replies
Allan