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

2 posts, 0 answers
  1. Dilip
    Dilip avatar
    19 posts
    Member since:
    May 2011

    Posted 19 Aug 2011 Link to this post

    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

     

     

     

     

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4609 posts

    Posted 22 Aug 2011 Link to this post

    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 >>

Back to Top