We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how to refresh a unique row after a ajax post

Thread ID:





145986 Jul 16,2019 06:48 PM UTC Jul 17,2019 08:41 AM UTC JavaScript - EJ 2 1
Tags: Grid
martiniano barbosa
Asked On July 16, 2019 06:48 PM UTC

how to refresh a unique row after a ajax post

Thavasianand Sankaranarayanan [Syncfusion]
Replied On July 17, 2019 08:41 AM UTC

Hi martiniano, 

Thanks for contacting Syncfusion support. 

We have analyzed your query. We suspect that you would like to refresh only the particular edited row during update instead of refreshing the entire Grid. We would like to inform you than by default when you update a data in Grid, the entire Grid will be refreshed to reflect the changes in Grid. But based on your requirement, we suggest you to follow the below code to refresh only the particular row during editing. 

In the below code, we have bind the “actionBegin” event to Grid and in this event handler we suggest you to cancel the default save action by using “args.cancel = true” and then change the “isEdit” value to false. Then you need to update your service data base(from which Grid is currently populating) after this you need to update the “currentViewData” of Grid and finally call the “refreshRow” method of editModule in Grid with the edited values as argument for the method. Please refer the code below, 

    function actionBegin(args) { 
      if(args.requestType == "save"){ 
        args.cancel = true; 
        this.isEdit = false; 
        this.currentViewData[args.rowIndex] = args.data; 

Documentation :  
Note : The above workaround will work only for inline mode of editing in Grid. 

Please get back to us if you need further assistance. 

Thavasianand S. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon