open model popup using code-behind for RadWindow

3 posts, 0 answers
  1. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 22 Aug 2009 Link to this post

    Hi 
            I have used Telerik Rad Ajax Control Q2 2008 version. 
            
            I want to open modal popup using code-behind.
            right now I have opened simple popup using follwoing code
            

     

    string sc = "<script language='javascript' type='text/javascript'>window.open('Last_Section_Summary.aspx?SectionId=" + Last_A_SectionId.Value + "&EmployeeAssessmentId=" + Last_EmployeeAssessmentId.Value + "','AddPageHere','width=200,height=300,left=200,top=170,resizable=0,scrollbars=1');</script>";

     

    Page.ClientScript.RegisterStartupScript(

    this.GetType(), "refresh", sc);

            Please give me your help to open model popup using code-behind for RadWindow.

    Thanks

     

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 24 Aug 2009 Link to this post

    Hi Rahul,

    Try out the following code anippet in order to show RadWindow from code behind.

    C#:
     
    protected void Button1_Click(object sender, EventArgs e)  
    {  
        RadWindow window1 = new RadWindow();  
        window1.NavigateUrl = 'Last_Section_Summary.aspx?SectionId=" + Last_A_SectionId.Value + "&EmployeeAssessmentId=" + Last_EmployeeAssessmentId.Value;   
        window1.VisibleOnPageLoad = true;  
        window1.Modal = true;  
        window1.Width = 200;  
        window1.Height = 300;  
        this.form1.Controls.Add(window1);  

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 24 Aug 2009 Link to this post

    Hi Rahul,

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


    Regards,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top