radwindow is creating multiple instances

2 posts, 0 answers
  1. Richard M
    Richard M avatar
    76 posts
    Member since:
    Mar 2010

    Posted 26 Jul 2010 Link to this post

    I need to create a radwindow on the server-side when I click on a Button1.  The problem is every time I close the radwindow then click on Button1, it creates another copy of the radwindow.  So if I open and close the radwindow 4 times, I will have 4 duplicates of the same radwindow.  I tried setting DestroyOnClose = true, but it did not change.

    Protected Sub Button1_Click()
            Dim newWindow As RadWindow = New RadWindow
            newWindow.ID = "window_New"
            newWindow.KeepInScreenBounds = True
            newWindow.Behaviors = WindowBehaviors.Close + WindowBehaviors.Move
            newWindow.Skin = "WebBlue"
            newWindow.NavigateUrl = "New_Account.aspx"
            newWindow.Height = "433"
            newWindow.Width = "416"
            newWindow.Title = "Create A New Account"
            newWindow.VisibleOnPageLoad = True
            newWindow.DestroyOnClose = True
            RadWindowManager1.Windows.Add(newWindow)
    End Sub
  2. Richard M
    Richard M avatar
    76 posts
    Member since:
    Mar 2010

    Posted 26 Jul 2010 Link to this post

    Found the solution.  Needed to add EnableViewState = "false" in my RadWindowManager.  Works great now.
Back to Top