- Home
- Forum
- ASP.NET MVC - EJ 2
- With batch editing, I lose changes when I update the grid filter.
With batch editing, I lose changes when I update the grid filter.
I have a grid with batch edit. One record is edited, changes not saved.
I then click on a filter and select one item from the filter:
I am given a warning about unsaved changes. However, the grid has already been filtered.
Grid with edit:
Warning with grid already filtered:
Filtered grid after I click cancel (my edit is gone):
Hi Dermot Heslin,
Greetings from Syncfusion support.
We have conformed the reported scenario as a bug from our end and logged it as “Unsaved Batch Changes Are Lost Upon Filtering in the Grid”. Thank you for taking the time to report this issue and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technical feasibility and Product Development Life Cycle ) and will include the defect fix in our upcoming patch release which will be rolled in the end of March, 2025.
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through the below link,
Feedback: https://www.syncfusion.com/feedback/66057/unsaved-batch-changes-are-lost-upon-filtering-in-the-grid
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,
Aishwarya R
Hi Dermot Heslin,
Due to the complexity of the issue, our team requires additional time to develop a comprehensive solution to maintain the stability and performance of our product. Consequently, we will address the reported problem regarding ‘Unsaved Batch Changes Are Lost Upon Filtering in the Grid ‘ and implement the fix in our upcoming patch release, scheduled for April 1st, 2025. We greatly appreciate your understanding and patience during this period.
Regards,
Aishwarya R
Hi Dermot Heslin,
We are glad to announce that, we have included the fix for the issue “Unsaved Batch Changes Are Lost Upon Filtering in the Grid” in our 29.1.35 release. So please upgrade to our latest version of the Syncfusion package to resolve the reported issue.
Root Cause: The filtering action prevention mechanism did not function as intended, causing it to return the next function associated with the object's value, which led to the execution of subsequent code.
Solution: The issue has been resolved by implementing a method that prevents the filtering action by returning 'false'.
Feedback: https://www.syncfusion.com/feedback/66057/unsaved-batch-changes-are-lost-upon-filtering-in-the-grid
We thank you for your support and appreciate your patience in waiting for this release. Please get back to us if you need any further assistance.
Regards,
Aishwarya R
Hi there
I have noted that while behaviour has changed, it is still not working as expected. Please see my comment in the feedback:
Hi Dermot Heslin,
The live demonstrations on the Syncfusion website are updated periodically; however, they do not reflect the latest fixes introduced in the weekly patch releases. Therefore, we recommend upgrading your Syncfusion package to the version 29.1.35 or to the latest version to resolve the reported issue.
Please refer to the attached sample, which uses the updated version, along with a video demonstration that shows how filtering is prevented when the cancel button is clicked in the batch edit confirmation dialog.
Sample and video demonstration: Please find in the attachment.
Please get
back to us if you need any other assistance.
Regards,
Santhosh I
Attachment: sampleanddemo_bda3c7a2.zip
Hi there
Thank you for your reply. I can see that it is working fine in the sample attached, but it is not working in my code. I am using Syncfusion.E2J.AspNet.Core, version 29.1.37. The sample you sent was using Syncfusion.EJ2.Javascript and Syncfusion.EJ2.MVC5 - could this be the issue?
Before filter:
By the time the warning box appears, the filter is already in place (now there are only 2 rows), and edit is lost:
I am realising that perhaps I initially used the wrong label on the thread - I see I posted under MVC. My issue is in AspNetCore.
Thank you
Dermot
Hi Dermot Heslin,
The provided fix is applicable to both ASP.NET Core and ASP.NET MVC platforms. To validate this, we have conducted testing using the ASP.NET Core Grid version 29.1.37. For your reference, we have attached the relevant sample and included a screenshot below:
However, we understand that you are still encountering the issue. Based on our investigation, we suspect that this behavior may be due to updating only the NuGet packages without updating the corresponding EJ2 script reference. We have reproduced this scenario in our testing environment by referencing an older version of the EJ2 script CDN within the “_Layout.cshtml” file while using the latest NuGet package versions and the issue was replicated.
Therefore to resolve the issue, please ensure that both the NuGet packages and the EJ2 script references are updated to the same version. Please check the below code snippet for reference:
|
[Views\Shared\_Layout.cshtml]
<!-- Syncfusion EJ2 controls script --> <script src="https://cdn.syncfusion.com/ej2/29.1.37/dist/ej2.min.js"></script>
<!-- Syncfusion EJ2 controls style --> <link rel="stylesheet" rel='nofollow' href="https://cdn.syncfusion.com/ej2/29.1.37/material.css" />
|
Regards,
Santhosh I
Attachment: CoreGridApp_7e313950.zip
Hi there
Thank you for the follow-up. You are correct, I hadn't updated my references.
Regards
Dermot
Hi Dermot Heslin,
We are glad to hear that the provided suggestion helped resolve the issue you were facing. Please let us know if you require any further assistance.
Regards,
Santhosh I
- 14 Replies
- 3 Participants
-
DH Dermot Heslin
- Mar 6, 2025 04:35 PM UTC
- Apr 24, 2025 05:07 AM UTC