PDA

View Full Version : how to refresh only one cell



starstar
17 Feb 2011, 6:51 PM
I want to edit the content of a cell in GridPanel.

In the program:

1. I double click the cell needs to be editted, then pop up a window to do some operations for the editing.
2. When destory the window, reload() the grid.
3. The grid scroll to the top and the content of the cell is updated.

It sounds OK. But sometimes the cell is not at the visiable area of the grid. I have to scroll down to find the cell.

I try to use focusRow(rowIndex) to do the sroll down operation, but I found that reload() does not have a callback function for me to call focusRow()...

Is there a way don't need to reload() and just refresh the cell I had edited? Then when the editting window closes, I can see the new content of the cell at once and don't need scroll down manually.

danguba
18 Feb 2011, 1:17 AM
You could just change the data of the record you are updating

or you can listen on store's load event and then do scrolling to desired row

18 Feb 2011, 6:09 AM
Moved to Ext help - please post your questions here instead of open discussion. =D>

starstar
21 Feb 2011, 9:32 PM
Thank you.

http://www.sencha.com/forum/archive/index.php/t-77902.html?

a good refrence above.