keyTable and update cell from external function

keyTable and update cell from external function

salvosavsalvosav Posts: 3Questions: 1Answers: 0
edited November 2012 in KeyTable
Hi, I'm using both FixedColumns that KeyTable.
I need to update the contents of some cells through the fields outside the table. To do this I use a simple javascript function that takes the value entered by the user and replaces it with a cell in the table.
The cells which are one inside the header (fixed), one inside the table and one in a column fixed.

The problem is that when you use the arrow keys to move around the table, the previous variation on the fixed column is lost (back to the previous value), while the others behave properly.

This is how I use keyTable and Fixedcolumns

[code]
var oFC = new FixedColumns( oTable, {
"iLeftColumns": 1,
"iRightColumns": 3,
"sHeightMatch": "none",
} );

var keys = new KeyTable( {
"table": document.getElementById('tableHead'),
"datatable": oTable,
} );
[/code]

Any idea?
thanks

Replies

  • salvosavsalvosav Posts: 3Questions: 1Answers: 0
    Write however the solution.

    I did update the columns fixed using oFC.fnUpdate (). Trying to oTable.fnUpdate ('string', pos, pos) everything went ok.
This discussion has been closed.