This is a migrated thread and some comments may be shown as answers.

open model popup using code-behind for RadWindow

2 Answers 786 Views
Window
This is a migrated thread and some comments may be shown as answers.
Rahul Khinvasara
Top achievements
Rank 1
Rahul Khinvasara asked on 22 Aug 2009, 05:12 AM
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 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 24 Aug 2009, 06:16 AM
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.
0
Georgi Tunev
Telerik team
answered on 24 Aug 2009, 11:04 AM
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.
Tags
Window
Asked by
Rahul Khinvasara
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Georgi Tunev
Telerik team
Share this question
or