Window Close

3 posts, 0 answers
  1. Siddhartha Savant
    Siddhartha Savant avatar
    6 posts
    Member since:
    Oct 2012

    Posted 24 Jun 2010 Link to this post

    Hi,

    Need to close the rad modal window via server side button postback. In the Button Click I have a Literal/Label in which I provide the javascript function which has Close Window logic. This works when there is no AJAX on the page but fails when I have AJAX. please advice.

    Sid
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 25 Jun 2010 Link to this post

    Hello Sid,

    Consider the RegisterStartupScript() server method to invoke the client method than injecting the script and see whether it helps.

    The KB Article shows how to show radalert from code behind. Use the same logic to invoke the client function which closes the window.
    KB Article : Calling radalert from codebehind


    -Shinu.
  3. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 25 Jun 2010 Link to this post

    Hello Sid,

    I believe that this blog post will be of help. In short, you should not output JavaScript code in a Label when Ajax is used because that code will not be evaluated. You should use some other approach (like the ones described in the blog post) instead.

    All the best,
    Georgi Tunev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top