-
Notifications
You must be signed in to change notification settings - Fork 778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flutter Copy From Excel Clipboard and pate into each cell loop column wise and row wise #2090
Comments
We thoroughly analyzed the provided sample. After a detailed review, we found that in the _onCellSubmitted method, you are creating new DataGridRows for every value update in the Map collection, instead of editing the existing ones. This results in improper behavior with the current cell focus and causes the cursor to become invisible. We have modified the sample so that instead of rebuilding the rows for each value update in the _onCellSubmitted method, we now update the respective cell values within the rows during DataGridSource.onCellSubmit. In the onCellSubmit method, we fetch the relevant value from the Map collection and update it in the appropriate cell. Additionally, we build an extra row based on specific conditions within the _onCellSubmitted method. We have attached the modified sample for your reference. Please review it for further details.
Regards, |
its almost perfect only Few Issues .
23.09.2024_21.26.34_REC.mp4 |
We have attached the modified sample for your reference. Please review it for further details.
Regards, |
Still Facing Error. 24.09.2024_16.54.18_REC.mp4after copy completed then i select different grid-view from option button then cell focus still on same cell as previous grid. |
Based on the provided details and the mentioned issue, we have conducted a review on our end.
We have attached the modified sample and video for your reference. Please review it for further details.
Regards, Abinesh P |
We suspect that the reported issue has been resolved at your end. Hence, we are closing this issue. If you need any further assistance, please reopen this. We are always happy to help. Regards, |
i tried this solution its working fine on windows but not on macos |
@ashok-kuvaraja is there any workaround for mac as well because same copy paste demo provided is working for windows but not for mac |
The sample of copy-paste behavior mentioned above was achieved through a custom implementation by the customer. Currently, we do not have direct support for copying and pasting cell content in the DataGrid. At present, the DataGrid does not support copying and pasting cell content. However, we have already noted your request as a potential feature, and we plan to consider it for future releases. During the planning stage for each release cycle, we review all open feature requests and prioritize them for implementation based on various factors, including product vision, technological feasibility, and customer demand. We appreciate your patience and understanding, and you can refer to the feedback link below for further updates. Feedback link: 37701 Regards, |
Bug description
i want to Copy excel Clipboard and paste into Grid with auto add new Row.
Note it will also validate cell when paste and if there any issue on cansubmit event then brake the paste function
Steps to reproduce
1.while Paste into first column value it doing same rest other column values are fine
2. before pasting into new cell editing cursor is not visible. each cell need to show edit cursor when it being paste the data.
3. while pasting into 3 columns it showing much cell focused.
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
current flutter
https://github.com/user-attachments/assets/5b859745-7fa1-427e-bba7-5118b3707485
required as
22.09.2024_19.03.22_REC.mp4
Stack Traces
Stack Traces
On which target platforms have you observed this bug?
Web, Windows
Flutter Doctor output
Doctor output
[Add your output here]
The text was updated successfully, but these errors were encountered: