GRAND-CHILD RadWindow wont restore focus on parent (CHILD) when closed using "X"

0 Answers 25 Views
Window
Rayz
Top achievements
Rank 1
Rayz asked on 15 Mar 2022, 11:04 PM

I have a window (1) that opens a radwindow dailog (2) as modal - this is working properly.

If the child dialog (2) opens a new radwindow (3), launched from the parent (1) and also set to modal,
I am having issue when closing the GRAND-CHILD (3) Window using browser close ('x' in top right corner)

If I use a button and call  oWin.close(result) then there is no problem.
The grandchild (3) windows closes, passes the arguments to the parent (1) which then in turn operates on the Child (2) Window.

However, if all scenarios remain the same and the user clicks the "x" at the top right corner,
The grand-child (3) closes but the child (2) stays modal and does not have focus - the screen remains a transaprent grey.

I have tried to set focus on the child (2) window from within the OnClose method but it stays dimmed by the transparent layer.
How can I give proper focus the the second or child window when the third window is closed by using on ly the "X" ?

Thanks !

Attila Antal
Telerik team
commented on 18 Mar 2022, 12:17 PM

Hi Ray,

Can you share the markup and scripts for all 3 Windows? Since there could be limitations to what you're building, I would like to check how things are configured.

Note: you can remove all the unnecessary content from the windows. I would only need to see the properties and the code that creates the dialogs, etc.

Once I see the code I will try to replicate the scenario locally check its behavior.

I look forward to your reply.

No answers yet. Maybe you can help?

Tags
Window
Asked by
Rayz
Top achievements
Rank 1
Share this question
or