I noticed that that when i hit the enter key after changing the value in the grid, it does not change in the data base. It gets changed only if I click on any other cell.
Why is this so? Has anyone noticed this? And does any one know the solution??
Hi,
When you press enter, it changes the value on the client and logs that the change needs to go back to the server. It will fire row updating if you activation on when you go to another row and then try to update the whole row's changes. If you want it to happen immediately, you will need to do two things. The first is to simply handle the Row Upadting server event of the grid's Editing Core. And then you will need to handle exited edit mode on cell editing behavior. Then fire commit() off of the editing core behavior on the client side. This should get the immediate ajax callback you want. Let us know if you continue to have trouble.
cellExitedEditMode(grid, args) { var editing = grid.get_behaviors().get_editingCore(); editing.commit(); }
regards,David Young
Thanx a lot..David
though im jst a beginner..it helpd me..
more over.. could you give me link from whre I can learn more of this..
for eg. how can i know what all arguments are passed when the function is called.
and the properties for each argument.. (grid and args in this case)
You will want to check out the documentation.
Docs You will need to look at the client side object model for the data grid and its various objects (the CSOM)
-Dave