I understand I can retrieve the list data using context.load(data) and later firing

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.

1 Answer 1


My understanding of JSGrid is that you have to use both server-side code (C#) and client-side code (JavaScript). So if you cannot use C#, then I don't think you can use JSGrid (and if you can, please let me know !!).

So you'll have to use the JavaScript Microsoft API to get the data from a list, update them and so on. This API is not clear or easy to use. Also you don't provide enought context code to be able to help you more than that...

At the end, I'd recommend you to look at my JavaScript Library called SharepointPlus. It should be simpler to use. For example to update a list with a WHERE Clause you can do :

$SP().list("List Name").update({Title:"Ok"},{where:"Status = 'Complete'"});
  • JsGrid can be used purely client-side, I did it. It has extensive (and undocumented, unfortunately) javascript API. But the thing is, it seems the question does not really relate to JsGrid... Aug 25, 2014 at 1:52
  • @AndreyMarkeev I'd be glad if you can share some code, somewhere :-)
    – AymKdn
    Aug 25, 2014 at 7:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.