cellSubmit issue
I am trying to edit specific column textfield programatically using beginEdit Future<void> function. After calling beginEdit onCellSubmit is called automatically by the plugin.
I cant share the entire project code so i am sharing some loggers screenshot,
Code where beginEdit is called, mentioned notifyListener() is related to provider
onCellSubmit code Screenshot is also mentioned below
Hi Mohammed,
Based on the provided information, we have thoroughly reviewed the issue and
conducted testing with a basic sample on our end. Regrettably, we were unable
to reproduce the reported issue. Specifically, we did not observe automatic
cell commitment after initiating editing programmatically.
Attached is the sample that we tested on our end for your reference. In this sample, we programmatically initiate editing of the first cell in the first row via a button click. Kindly review the attached sample from our end.
We suspect that the issue you are encountering may be specific to your sample, particularly related to the “notifyListeners” associated with the `editSpecificField` method. Please ensure that these components are implemented correctly within your sample. Additionally, note that if the build method is invoked while a cell is in edit mode, the DataGrid will automatically commit the cell editing to trigger a rebuild.
If there are any configurations or adjustments required to accurately reproduce the issue, please modify the sample accordingly. Furthermore, providing detailed steps for reproducing the issue, along with the sample and any other relevant details, will greatly assist us in identifying and resolving the issue promptly. Your cooperation is greatly appreciated as we work to address this matter.
Regards,
Tamilarasan
Attachment: Sample_53330e16.zip
But iam facing this issue in latest version (https://pub.dev/packages/syncfusion_flutter_datagrid/versions/24.2.9 ) not in older version (https://pub.dev/packages/syncfusion_flutter_datagrid/versions/22.2.7 ), i downgraded the version and check but not facing.
Do you want us to check by removing notifyListener (function from provider state management)
Mohammed,
Thank you for the update. As mentioned earlier, we tried to reproduce the issue using a basic sample with the latest version of the DataGrid (24.2.9), but were unsuccessful in replicating it. It's possible that the cell is being committed when triggering a widget rebuild while in edit mode. This rebuild might be triggered by the `notifyListeners`. Therefore, we recommended ensuring that `notify Listener` is not present to prevent this potential issue.
Furthermore, given that your sample utilizes a provider, diagnosing the exact issue without running the sample may be challenging.
In our previous response, we also provided a basic sample demonstrating programmatical beginning of the edit, along with an attached sample and video for your reference.
To further assist you, we kindly request that you modify the attached sample provided in our previous response to replicate the issue you are encountering. This will greatly aid our investigation process and allow us to provide you with an effective solution as quickly as possible.
Note: We have tested our sample which is attached in previous response using latest DataGrid (24.2.9) and latest Flutter stable version (3.19.3) on Windows platform.
Regards,
Tamilarasan
- 3 Replies
- 2 Participants
-
MA Mohammed Abrar Ul Haq
- Mar 11, 2024 12:36 PM UTC
- Mar 13, 2024 01:46 PM UTC