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

Open RadWindow OnButton Click

1 Answer 71 Views
Window
This is a migrated thread and some comments may be shown as answers.
Neha
Top achievements
Rank 1
Neha asked on 17 Jan 2011, 07:59 PM
Hi,

I was looking at code sample, i found that OpenWindow function writtern as a javascript.

Is there any way i can write the same code on my code behind.

i.e.

protected

 

void radBtnSaveQuery_Click(object sender, EventArgs e)

 

{
some code.......

 

}
I am looking for that some code...

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 Jan 2011, 06:18 AM
Hello Neha,

You can open RadWindow from code Behind. Here is the sample code.

C#:
protected void Button3_Click(object sender, EventArgs e)
  {
      RadWindow newWindow =new RadWindow();
      newWindow.ID = "RadWindow1";
      newWindow.NavigateUrl = "Navigateurl.aspx";
      newWindow.VisibleOnPageLoad = true;
      RadWindowManager1.Windows.Add(newWindow);//Add new window to the RadWindowManager's Windows collection.
  }

Thanks,
Shinu.
Tags
Window
Asked by
Neha
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or