Skip to content
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

Problem in PopupClosing Event of Datagrid #3149

Closed
HaPre opened this issue Nov 21, 2021 · 3 comments
Closed

Problem in PopupClosing Event of Datagrid #3149

HaPre opened this issue Nov 21, 2021 · 3 comments
Assignees
Labels
Type: Bug 🐞 Something isn't working

Comments

@HaPre
Copy link

HaPre commented Nov 21, 2021

When you want to prevent closing the Edit Popup you can use PopupClosing Event of the Datagrid. When you set the Cancel property on FocusLostClosing the CloseReason property stays with FocusLostClosing and the Popup never closes again.

I have attached an example project.

BlazoriseTest.zip

@David-Moreira David-Moreira self-assigned this Nov 26, 2021
@David-Moreira David-Moreira added the Type: Possible Bug Needs to investigate more to see if it's an actual bug. label Nov 26, 2021
@David-Moreira
Copy link
Contributor

Hello @HaPre
Thank you for providing us with an example project.
This does seem like a bug, maybe even with stand alone Modal. We'll take a look and let you know as soon as we have news.

@David-Moreira David-Moreira added Type: Bug 🐞 Something isn't working and removed Type: Possible Bug Needs to investigate more to see if it's an actual bug. labels Nov 26, 2021
@stsrki stsrki added this to the 0.9.5 Support milestone Nov 26, 2021
@stsrki stsrki closed this as completed Nov 28, 2021
@stsrki
Copy link
Collaborator

stsrki commented Nov 29, 2021

@David-Moreira Seems that this is still not working fully. Message from the Gitter room:

@stsrki Thanks for fixing the bug "Problem in PopupClosing Event of Datagrid #3149" with 0951. But ... it was partly fixed ;-) When I click outside the modal dialog and than I click the close button, all works fine now. The fix fixed it. But when I click outside the modal dialog and than I click the Save button, the Save function is execute but the PopupClosing even still get's a "FocusLostClosing" CloseReason event, and therefor it doesn't close. You can see this behaviour in my test project which i have uploaded last on GitHub.

@David-Moreira
Copy link
Contributor

Oh... My bad... Right makes sense... We didn't change anything in the save functionality... I'll take a look, it should be the same as for cancel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug 🐞 Something isn't working
Projects
Archived in project
Development

No branches or pull requests

3 participants