This is a migrated thread and some comments may be shown as answers.

rad window's 'onClientClose' is not hitting in title bars close button

1 Answer 91 Views
Window
This is a migrated thread and some comments may be shown as answers.
Dilip
Top achievements
Rank 1
Dilip asked on 19 Aug 2011, 08:09 AM
Hi,
In my aspx page , I have  a Rad window.

1.I have a radWindow that opens as a popup window.
2. This popup radWindow has a close button in title bar.
3. Even though  OnClientClose="onClientClose" is set,when the user closes this window using titlebar's close button,the onClientClose is not getting fired.

Please advise how to fix this issue.

Thanks in advance

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 22 Aug 2011, 02:35 PM
Hello Dilip,

This event should be fired regardless of the way you close the RadWindow - whether via the [X] button or via JavaScript.

The only possible reason I can think of is that the [X] button does not pass an argument, so if you check for that it could seem that the event is not fired, since the if() block would not be entered.

  Also, if you have set the DestroyOnClose property to true and you have already opened and closed this RadWindow once the second time there will be no such client object and a new one with the default settings will be created, thus the handled will be lost. If that is the case either add the handler dynamically, or remove the DestroyOnClose property.

You can find attached a simple page that I used to test this behavior. Please examine it and  see if there is any major difference with your setup.

In case you are able to reproduce this behavior with my page please send me the steps I need to take to see it in action so that I can investigate it.


Greetings,
Marin
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Window
Asked by
Dilip
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or