I understand I can retrieve the list data using context.load(data) and later firing
context.executeQueryAsync(Function.createDelegate(this,
this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
But I still dont understand how to use the data retrieved to update the SharePoint list. I don't want to create a new list in function onQuerySucceeded(). Rather I want to update the existing list.
function onQuerySucceeded(){
var fetchedData = data.getEnumerator();
//.... How can I populate this fetchedData to existing list. I believe it should be feasible using jsgrid, but I have no idea how to do that.
}
I can only write javascript but not c# for this project.