:: Forum >>

Grid performance

Hi,

I want to use the grid to display real time updates, which I receive from an applet (very fast updates)... what's the best way of updating the Grid? Should I store the data in an Array and refresh Cell by Cell as the values change?

Also what is the best way to reference the cells... should I use the array index or should I assign and ID to each cell?

Please help... thanks

P.S. Great grid
Thursday, May 19, 2005
I think the best is (as you say) to store the data in JS array and refresh cell by cell (or full row if there are many cells changed) using array indices for addressing. I guess you may go up to something like 100 updates per second.

Small example:

window.setInterval(function(){
        var row = 1;
        var col = 1;
        myData[row][col] = (new Date()).valueOf();
        obj.getRowTemplate(row).getItemTemplate(col).refresh();
    }, 100);
Alex (ActiveWidgets)
Thursday, May 19, 2005
How about inserting new rows?
Monday, May 23, 2005
Hi Great Grid,

I also want to use applet as well as Grid control for real time upades.

Can u tell me how u did in both cases.

My emai id is dedhiahiren@yahoo.com
Hiren
Saturday, May 28, 2005

This topic is archived.


Back to support forum

Forum search