RadWindow as Modal Popup

4 posts, 0 answers
  1. Saurabh Srivastava
    Saurabh Srivastava avatar
    45 posts
    Member since:
    Aug 2009

    Posted 06 Sep 2009 Link to this post

    Hi,

    I have a page with an asp button. On click of the button I do some server side processing and display the results on a new page. I would want to display those results using radwindow as a popup. How can this be done?

    Regards,
    Saurabh
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 07 Sep 2009 Link to this post

    Hi Saurabh,

    You could achieve the desired result by:
    1. opening the RadWindow from the server by using the VisibleOnPageLoad property like shown in this help topic.
    2. using the query string to load data in the content page like shown here and in this demo.



    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Saurabh Srivastava
    Saurabh Srivastava avatar
    45 posts
    Member since:
    Aug 2009

    Posted 07 Sep 2009 Link to this post

    Hi,

    I am getting a Sys is undefined error when I do

     

     

      string jScript = "function()\n";  
                    jScript += "{\n";  
                    jScript += "var ownd = radopen('www.google.com', 'RadWindow1');\n";  
                    jScript += "ownd.center();\n";  
                    jScript += "}";  
                    ScriptManager.RegisterClientScriptBlock(this, GetType(), "Javascript""Sys.Application.add_load (" + jScript + ");"true); 

    on my button click. I have a master page which has a ScriptManager and the code above is written on a content page which has a RadAjaxManager as well.

    My web.config is written appropriately to handle Ajax.

    Could you please help?

     



  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 07 Sep 2009 Link to this post

    Hello Saurabh,

    I believe that the following blog post will be of help in this case:
    http://blogs.telerik.com/blogs/09-05-05/executing_javascript_function_from_server-side_code.aspx

    If you still experience problems, please open a support ticket and send us a sample page where this issue could be reproduced so we could check it.




    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top