I use asp.net web api for reading data into my kendo grid. When user click on a cell, it changes to edit mode. What i am trying to achieve is that when it changes to edit mode, it should also get the latest record from the back end. is it possible by someting like:
edit:function(e){
e.model.read();
}
This can do what you want but remember that despite you get the data from the server remember what I said in the comment to your question:
Said that, here it goes:
The basic trick is if you are editing a cell because the user clicked on it, then I'm going to send a read request to the server and cancel the edition. As consequence of the new read, I'm going to have a new
dataBound
event where I will ask if this is as consequence of this forced read and if so, I will enter in edition mode for the same cell.This is the code:
And a code snippet on this following (instructions, open it twice and play with one and the other and you will see that when enter in edition mode, it actually gets closed, refreshed and edited again). Remember to click on "Save changes" for sending the changes to the server.