I have a page with an editable datagrid on it. I am not using
any item renderers or anything. Also I am refreshing this page
every five seconds by doing a setInterval() on it. Here's the
scenario which is causing the problem.
I select a cell to edit. The cell's look changes from regular
text to the look of an editable field. However if the refresh
happens before I make my changes, the cell gets converted back to
regular text. Is there a way for me to maintain the editability of
the cell through the refresh or should I use some other method of
refreshing the data?
It seems to me that if the user has started entering data,
that you should suspend the refresh activity entirely, until the
current data is saved. Otherwise, it wll be nearly impossible to
update the data, since few people will be able to type and samve
sopmething in less than 5 seconds.
I think the way I would do it would be to stop the refresh
from happening when the user starts editing and to restart it when
user quits or completes the editing. DG events can be used to
detect these states.