Open RadWindow Server side

2 posts, 0 answers
  1. Johnny
    Johnny avatar
    86 posts
    Member since:
    Dec 2010

    Posted 31 Aug 2011 Link to this post

    hi i open radwindow with the following code , my problem is if i set VisibleOnPageLoad=true the code is working but each time the page post back the Radwindow open again if i set VisibleOnPageLoad=false couldn't open radwindow
    Dim RW As New RadWindow
    RW.NavigateUrl = "Search.aspx"
    RW.VisibleOnPageLoad = True
    RW.Width = New Unit(720, UnitType.Pixel)
    RW.Height = New Unit(532, UnitType.Pixel)
    RW.VisibleStatusbar = False
    RW.MaxWidth = New Unit(720, UnitType.Pixel)
    RW.MaxHeight = New Unit(532, UnitType.Pixel)
    RW.OnClientClose = "OnClientClose"
    RW.Modal = True
    RadWindowManager1.Windows.Add(RW)            
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 31 Aug 2011 Link to this post

    Hello Johnny,

    You can resolve this by setting EnableViewState = "false" for the RadWindowManager. Also take a look at the following forum thread which discusses similar scenario.
    Stop RadWindow from always loading on page postback.

    Thanks,
    Princy
Back to Top