I have a Kendo DataSource that takes its data from a remote server (Json) and it bind the data to a kendo template in the client-side.
On the client, right now I just display the Data. However, I want to add/remove data in the dataSource as well. How can I send the dataSource after modification back to server and store it in there ?
Here is a good example of what I am trying to do. While this example reads its data from a local variable, would you please let me know:
How can I store the dataSource on the server-side after user make modification on the client ?
http://jsfiddle.net/derickbailey/D4g8S/
For example the add method just update the datasource on the client side. However, I want to send it to the Server and store it some how there. As a results, if someone else open the same web page in another client, he/she can see the changes as well.
$("#add").click(function(e){
e.preventDefault();
var $todo = $("input[name='description']");
currentId += 1;
dataSource.add({
id: currentId,
done: false,
description: $todo.val()
});
$todo.val("");
$todo.focus();
});
I am using C# .Net MVC on the server side.