PDA

View Full Version : Refreshing just a single grid cell



mankz
28 Aug 2009, 9:47 AM
I wonder if there's an easy way to re-render just one cell? I know the grid view has an internal method refreshRow which I'm currently using. My rows are pretty expensive to refresh so I reckon a refreshCell would come in handy. Any ideas?

Condor
29 Aug 2009, 3:28 AM
You could use:

grid.getView().getCell(row, col).firstChild.innerHTML = 'New content';

mankz
29 Aug 2009, 10:39 AM
That much I know :)

I'd like a way to do this that involved invoking the column renderer and the record data. No easy way then I guess..?

Animal
29 Aug 2009, 1:45 PM
There's a whole issue around this.

In theory you should be able to just change the Record's Field.

But... "GridView.refreshRow implementation is seriously broken" (http://extjs.com/forum/showthread.php?t=62466)