Saturday 17 December 2016

Refresh ListView in SharePoint Online Using Javascript CSR

Hello Everyone,
 
In this post I am going to tell you how to refresh the list View without manually reloading 
the page to view the changes after doing any crud operation in SharePoint List using CSR.

//if you want to refresh the list view use the below code inside OnSuccess Method

var customAjax = {
  currentCtx: ctx,
  csrAjaxRefresh: true
};


AJAXRefreshView(customAjax , SP.UI.DialogResult.OK);