Bug in KeyTable?
Bug in KeyTable?
Hi,
I am using KeyTable with Data Tables and it appears that if there is a hidden column in your table this breaks KeyTable. Tabbing through the hidden column causes 1) a null object error 2) The rest of the rows to be ignored.
The error occurs on line 397 of Data Tables:
var iRow = _fnFindDtCell( nTarget )[1];
Error: _fnFindDtCell(nTarget) is null
Am I doing something wrong? Really looks like a bug to me...
Scott
I am using KeyTable with Data Tables and it appears that if there is a hidden column in your table this breaks KeyTable. Tabbing through the hidden column causes 1) a null object error 2) The rest of the rows to be ignored.
The error occurs on line 397 of Data Tables:
var iRow = _fnFindDtCell( nTarget )[1];
Error: _fnFindDtCell(nTarget) is null
Am I doing something wrong? Really looks like a bug to me...
Scott
This discussion has been closed.
Replies
So I've fixed this and KeyTable 1.1.4 is now available which addresses this: http://datatables.net/plug-ins/#KeyTable
Regards,
Allan
There also appears to be a similure problem in fnGetPosition. The column returned does not include the visible=false columns.
However, fnUpdate does include invisible columns. So updating via the column number returned by fnGetPosition update the previous column.
[code]
var aPos = oWWMaintenanceList.fnGetPosition( this );
oWWMaintenanceList.fnUpdate( sValue, aPos[0], aPos[1] );
[/code]
Scott
[code]
[
aoData index row,
column index (discounting hidden rows),
column index (including hidden rows)
]
[/code]
http://datatables.net/api#fnGetPosition
Allan