RadWindow issue

3 posts, 0 answers
  1. Naupad
    Naupad avatar
    23 posts
    Member since:
    Dec 2011

    Posted 09 Feb 2012 Link to this post

    I have only 1 RadWindowManager on a page and the window manager has 2 rad windows with different Navigateurl values.(Both are different .aspx pages) Among them, 1 works fine but any event is not firing on the other window. I am trying to use OnClientClose event and its not calling the function. I tried using different events for that window but still it is not firing for any event.

    FYI:
    I already have DestroyOnClose=true for both windows and manager.

    HELP....
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    5243 posts

    Posted 13 Feb 2012 Link to this post

    Hi Naupad,

    Please make sure that the syntax is correct - i.e. there isn't a typing mistake in the event handlers names. You can see a list here. You should also make sure that you only pass the function name to the property, without parentheses. I can also advise that you check if you have any JavaScript errors on the page as they are often a reason for such behavior. Any error breaks the browser's JS engine and no more scripts are executed. You should also confirm which is the window that does not fire its events and if it has been opened and closed before, as DestroyOnClose would also remove the event handlers since the RadWindow that has them attached no longer exists. You can try settings this property to false, especially if you wish to open and close this RadWindow multiple times while persisting its configuration. An alternative is to add the needed handlers when you open its via JavaScript, which will allow you to keep the DestroyOnClose. If you are still unable to resolve this please post the relevant code along with the steps needed to reproduce the issue so we can see what the problem is. Also, if you have the AjaxControlToolki assembly in this project I suggest you remove it and test again, as it often outputs wrong MS AJAX scripts that can break our controls.


    Greetings,
    Marin
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. Naupad
    Naupad avatar
    23 posts
    Member since:
    Dec 2011

    Posted 13 Feb 2012 Link to this post

    I am sorry, I forgot to re-post again. I was actually passing wrong ID for the Rad Window as an argument to radwindow.open on the client side.
    I fixed it as soon as I changed that ID to the correct one.

    Thank You.
Back to Top