I have a WHDG set up and it work properly for cell editing. I have enable Ajax set to true. I have the cell editors responding properly and I am able to capture the code in the code behind file. Right now the event only fires when I do a new row selection. I want to enable the current row to update or a cell actually to update with the enter key, NOT the row changing. I have this working fine with the webdatagrid but even with the same settings the WHDG will not update the cell when you hit enter. You have to actually select another row in order fire the updating event. Why is that? I have the enable enter key on the design for each editor as well.
Hi again. I did get this to work on a WHSG but I now have a simple datagrid I have created. I can follow the code and it processes except the commit() doesn't fire the server event. The server event still only get hit when you change to a new row. Do you know why it would work on one page and not another with all the same set up except the type of grid?
Let me know if I may be of further assistance.
Hello nbizub,
Thank you for you question!
About your question, I assume that you also have activation behavior enabled. In order to show you how to commit the change on Enter key press I have created a sample which can be found attached to my reply. Commit changes is called when the row selection is changed, this is why the row is updated when you change the selection. My suggestion is to handle ExitedEditMode client event of the CellEditing behavior, and there to check if Enter key is pressed (keyCode=13) and if it is, to call commit().
Code snippet: