Grid refresh is not working when using it from OnActionComplete

Hi There,
I'm using inline editing to edit a grid and on OnActionComplete method, I'm saving the row detail to the database and then calling the Grid.Refresh() method but after this, it is giving errors in the console and removing all the rows from the grid. Just for your information, I'm also using Detail Template in this grid and in that detail template, I've 3 more grids. I'm showing the detail template in a particular condition and when saving the parent grid row, it's actually meeting the condition to show the detail template for that row. I'm not sure if this error is coming because of that or if I'm doing something wrong. I'm getting below errors:
Uncaught (in promise) TypeError: Cannot read property 'removeChild' of null
    at Object.e [as removeLogicalChild] (blazor.server.js:8)
    at e.applyEdits (blazor.server.js:8)
    at e.updateComponent (blazor.server.js:8)
    at Object.t.renderBatch (blazor.server.js:1)
    at e.<anonymous> (blazor.server.js:15)
    at blazor.server.js:15
    at Object.next (blazor.server.js:15)
    at blazor.server.js:15
    at new Promise (<anonymous>)
    at r (blazor.server.js:15)
blazor.server.js:15 [2020-03-22T06:13:32.771Z] Error: System.AggregateException: One or more errors occurred. (TypeError: Cannot read property 'removeChild' of null)
 ---> System.InvalidOperationException: TypeError: Cannot read property 'removeChild' of null
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.InvokeRenderCompletedCallsAfterUpdateDisplayTask(Task updateDisplayTask, Int32[] updatedComponents)
   --- End of inner exception stack trace ---

1 Reply

RN Rahul Narayanasamy Syncfusion Team March 23, 2020 01:25 PM UTC

Hi Preity, 

Greetings from Syncfusion. 

Query: Grid refresh is not working when using it from OnActionComplete 

To validate this issue further, could you please share the below details. It will be helpful to validate and provide a better solution. 

  • Full Grid code snippets.
  • NuGet Package version details.
  • When will you face the issue? – video demonstration if possible.
  • Did you face this issue in parent grid or detail grid?

Regards, 
Rahul 


Loader.
Up arrow icon