PDA

View Full Version : Stock Quotes Grid



tuler
13 Sep 2007, 8:46 PM
Hi,

I'm trying to make a stock quotes grid.
I'm modifying the array-grid sample from the documentation.

Just for testing I did:


function tick() {
var count = ds.getCount();
var index = Math.floor(Math.random() * count);
var record = ds.getAt(index);
var pctChange = Math.random() * 5;
pctChange = Math.floor(pctChange * 100) / 100;
if (Math.random() > 0.5) {
pctChange = -pctChange;
}
record.set('pctChange', pctChange);
record.commit();
}
Ext.TaskMgr.start({run: tick, interval: 50});


So far so good. The values are changed.

Now, how would I make the changed cell "blink"?
Is it possible to apply any Ext.Fx to a cell?

Thanks,
Danilo