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

Open radwindow from server side

1 Answer 388 Views
Window
This is a migrated thread and some comments may be shown as answers.
JJ
Top achievements
Rank 1
JJ asked on 13 Dec 2011, 05:20 AM
I have to a dropdown list ddlAction inside radgrid (radgrid inside updatepanel). I need to select different items  in the dropdown to open different radwindow. In my case, have to open on server side, due to one of the dropdown item does dowload file (response.writefile) so the dropdown have to do full post pack(RegisterPostBackControl(ddlAction));

The problem is when I use Window1.VisibleOnPageLoad = true; like beow, after I did Window2.VisibleOnPageLoad = true; then go back  to Window1.VisibleOnPageLoad = true; both windows opened, how to avoid that? I only need to open one winow at at time, don't understand why when call window1 open after click widow2 open, both of them opened at the same time?


  

switch (PageIndex)
{
  case 1:
   RadWindow Window1;
   Window1 = (RadWindow)Page.Master.FindControl("wndWindow1");
   Window1.VisibleOnPageLoad = true;
   break;
  case 2:
   RadWindow Window2;
   Window2 = (RadWindow)Page.Master.FindControl("wndWindow2");           
   Window2.VisibleOnPageLoad = true;
   break;
}  

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Dec 2011, 05:41 AM
Hello,

This is the expected behavior when you are setting VisibleOnPageLoad property. Check the sticky thread which explains how to resolve this issue.
Opening RadWindow from the server
Also check the following forum thread which explains the same.
Stop RadWindow from always loading on page postback

-Shinu.
Tags
Window
Asked by
JJ
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or