:: Forum >>

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.
Monday, December 31, 2007
try this:
grid.setCellText(refvalue, x.cellIndex, x.parentNode.sectionRowIndex-2);
Paulo Cesar (PC from Brazil )
Monday, December 31, 2007
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!
Tuesday, January 1, 2008

This topic is archived.

Back to support forum

Forum search