3.2.0

strange behaviour of external data model and setCellText

I am evaluating the grid and found a strange behaviour with external data model, I have linked the grid to cells of an existing HTML table.

After grid.refresh the grid is painted correctly

The linked HTML table is big and receives many AJAX based updates, therefore I would not like to use the grid.refresh everytime I receive updates.

So i calculate the position in the grid based on the dynamic HTML table update and set the new value in the grid :

grid.setCellText(refvalue,x.cellIndex, x.parentNode.sectionRowIndex-2);
(x = the table-cell that has the new value)

somehow there is a buffer in writing directly to the grid, the updates I see in the grid are allways one update behind the origional table. I assume this buffer is by design till one gives a grid.refresh.

Is there a way to write directly to the grid without having to use grid.refresh ?

I hope someone can help me with this, I like the grid very much and seriously think of buying it.
andre@bse-consultancy.com
December 31,
try this:
grid.setCellText(refvalue, x.cellIndex, x.parentNode.sectionRowIndex-2);
grid.getCellTemplate(x.cellIndex,x.parentNode.sectionRowIndex-2).refresh();
Paulo Cesar (PC from Brazil )
December 31,
Hi Paulo, many thanks for your input, I found following solution myselves, writing directly to the cell.

var e = grid.getCellTemplate(mycol, myrow).element();
e.innerText = refvalue

Your solution is more elegant!
andre@bse-consultancy.com
January 1,

This topic is archived.

See also:


Back to support forum