ajax cell refresh stops my keyboard navigation
I'm performing a cell edit and sending the data to my server via an ajax call. I'm returning a message telling me whether or not the value updated properly in the database and using the nifty indicator to alert the user.
In order for the indicator to display I'm using
in the ajax response function to refresh just the cell I updated.
My problem is that when I am traversing the grid using the keyboard arrows, they stop working when my ajax call returns. I then have to click on a cell with my mouse and can continue using the keyboard.
What it looks like is that the refresh() guy sets focus or something like that on the cell that made the ajax call so that my keyboard events don't apply. When I am editing a different cell when the ajax response comes back I have no problem.
Is there a way to either have the refresh not change the focus or detect where the focus should be and switch it back immediately? Or something else that I haven't thought of?
In order for the indicator to display I'm using
obj.getCellTemplate(column,row).refresh();
in the ajax response function to refresh just the cell I updated.
My problem is that when I am traversing the grid using the keyboard arrows, they stop working when my ajax call returns. I then have to click on a cell with my mouse and can continue using the keyboard.
What it looks like is that the refresh() guy sets focus or something like that on the cell that made the ajax call so that my keyboard events don't apply. When I am editing a different cell when the ajax response comes back I have no problem.
Is there a way to either have the refresh not change the focus or detect where the focus should be and switch it back immediately? Or something else that I haven't thought of?
Chris
May 18,