Open radwindow from server side

2 posts, 0 answers
  1. JJ
    JJ avatar
    147 posts
    Member since:
    May 2010

    Posted 12 Dec 2011 Link to this post

    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;
      case 2:
       RadWindow Window2;
       Window2 = (RadWindow)Page.Master.FindControl("wndWindow2");           
       Window2.VisibleOnPageLoad = true;
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 12 Dec 2011 Link to this post


    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

Back to Top