Grid EndEdit() in batch mode gives error 'Error: Event **** is already tracked' when pressing Enter key

Hi Syncfusion team,


I have a grid in batch mode that I customized to update automaticaly each edit when you change of cell or focus.



public async Task Saved(CellSaveArgs<Article> args)

{
await this._grid.EndEdit(); // End the edit
await this._grid.SetRowData(args.Data.Id, args.Data); // To update the row grid.
}

The problem is that, when I press the Enter or Tab key, it fires these errors:


crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]

Unhandled exception rendering component: Event 1261 is already tracked

Error: Event 1261 is already tracked

at e.add (https://localhost:*****/_framework/blazor.webassembly.js:1:42463)

at e.setListener (https://localhost:*****/_framework/blazor.webassembly.js:1:40697)

at e.applyAttribute (https://localhost:*****/_framework/blazor.webassembly.js:1:36864)

at e.insertElement (https://localhost:*****/_framework/blazor.webassembly.js:1:35698)

at e.insertFrame (https://localhost:*****/_framework/blazor.webassembly.js:1:34569)

at e.applyEdits (https://localhost:*****/_framework/blazor.webassembly.js:1:32955)

at e.updateComponent (https://localhost:*****/_framework/blazor.webassembly.js:1:32271)

at Object.t.renderBatch (https://localhost:*****/_framework/blazor.webassembly.js:1:12134)

at Object.window.Blazor._internal.renderBatch (https://localhost:*****/_framework/blazor.webassembly.js:1:61913)

at Object.w [as invokeJSFromDotNet] (https://localhost:*****/_framework/blazor.webassembly.js:1:64435)

Microsoft.JSInterop.JSException: Event 1261 is already tracked

Error: Event 1261 is already tracked

at e.add (https://localhost:*****/_framework/blazor.webassembly.js:1:42463)

at e.setListener (https://localhost:*****/_framework/blazor.webassembly.js:1:40697)

at e.applyAttribute (https://localhost:*****/_framework/blazor.webassembly.js:1:36864)

at e.insertElement (https://localhost:*****/_framework/blazor.webassembly.js:1:35698)

at e.insertFrame (https://localhost:*****/_framework/blazor.webassembly.js:1:34569)

at e.applyEdits (https://localhost:*****/_framework/blazor.webassembly.js:1:32955)

at e.updateComponent (https://localhost:*****/_framework/blazor.webassembly.js:1:32271)

at Object.t.renderBatch (https://localhost:*****/_framework/blazor.webassembly.js:1:12134)

at Object.window.Blazor._internal.renderBatch (https://localhost:*****/_framework/blazor.webassembly.js:1:61913)

at Object.w [as invokeJSFromDotNet] (https://localhost:*****/_framework/blazor.webassembly.js:1:64435)

at Microsoft.JSInterop.WebAssembly.WebAssemblyJSRuntime.InvokeUnmarshalled[Int32,RenderBatch,Object,Object](String identifier, Int32 arg0, RenderBatch arg1, Object arg2, Int64 targetInstanceId)

at Microsoft.JSInterop.WebAssembly.WebAssemblyJSRuntime.InvokeUnmarshalled[Int32,RenderBatch,Object](String identifier, Int32 arg0, RenderBatch arg1)

at Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer.UpdateDisplayAsync(RenderBatch& batch)

at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()


It's possible to end the edit without firing these errors? Thanks


1 Reply

JP Jeevakanth Palaniappan Syncfusion Team August 6, 2021 06:25 AM UTC

Hi Antonio, 

Greetings from Syncfusion support. 

We have validated your query by using the provided code snippet but we are unable to reproduce the reported problem from our end. Please find the validated sample and the video demo for your reference. 



If you are still facing the reported problem then kindly share us the below details. 

  1. Share us the Syncfusion NuGet version details.
  2. Share us the video demo of the reported problem.
  3. Share us the complete grid code with your model class and datasource.
  4. Share us the issue reproducing sample or reproduce the issue in the above provided sample.

Regards, 
Jeevakanth SP. 


Loader.
Up arrow icon