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?
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;
}