SfChart - Cancel Edit or Stop the edit of a particular column

How do I cancel the edit of a particular column - in this case I'm using a the Column Type.

I have tried:

OnDataEdit > obj.Cancel = true; return;

This does nothing. User can still edit the item and the OnDataEditComplete still fires.

I then try
OnDataEditComplete > obj.Cancel = true; return; Again does nothing the user can edit the column

Thanks in advance!



6 Replies

DG Durga Gopalakrishnan Syncfusion Team March 6, 2025 01:07 PM UTC

Hi Lee,


Greetings from Syncfusion.


We have considered your reported scenario as bug and logged a defect report for the issue “Single point data edit does not stop upon canceling in the event”. This fix will be available in our weekly patch release which is scheduled to be rolled on 26th  March 2025. We appreciate your patience until then. You can keep track of the bug from the below feedback link.


Feedback Link : https://www.syncfusion.com/feedback/66010/single-point-data-edit-does-not-stop-upon-canceling-in-the-event


If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal.


Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”


Regards,

Durga Gopalakrishnan.



LS Lee Stevens replied to Durga Gopalakrishnan March 7, 2025 08:04 AM UTC

Great thank you!



DG Durga Gopalakrishnan Syncfusion Team March 10, 2025 05:15 AM UTC

Lee,


Most welcome. We will resolve the reported issue as per mentioned timeline and let you know once patch release is rolled out. We appreciate your patience until then.



DG Durga Gopalakrishnan Syncfusion Team April 1, 2025 02:47 PM UTC

Lee,


We are glad to announce that our v29.1.35 patch release is rolled out; we have added the fix for reported issue. You can use the latest Syncfusion.Blazor.Charts NuGet package.


Root Cause:

The chart did not support preventing data editing through the event argument's cancel property.


Fix:

Added support to prevent data editing through the OnDataEdit event argument property Cancel when set to true.


NuGet Package : https://www.nuget.org/packages/Syncfusion.Blazor.Charts/


Sample : https://blazorplayground.syncfusion.com/hDhytzDWoCrLjLpP


Feedback :   https://www.syncfusion.com/feedback/66010/single-point-data-edit-does-not-stop-upon-canceling-in-the-event


We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.



LS Lee Stevens April 2, 2025 08:45 AM UTC

Thanks Durga, that seems to have fixed it.



DG Durga Gopalakrishnan Syncfusion Team April 3, 2025 08:04 AM UTC

Lee,


Most welcome. Please get back to us if you need any further assistance. We are always happy in assisting you.


Loader.
Up arrow icon