rad Window is opening number of Times

4 posts, 0 answers
  1. mani
    mani avatar
    38 posts
    Member since:
    Feb 2009

    Posted 02 Mar 2010 Link to this post

    Hi
              I used radwindow. In my page to have number of events. When I click the some event.  That time automatically same radwindow Copy open in another window (page). This one  is doing number of times.  I need to control this one. I want to need only one time opens the window. I don’t need to open the number of same radwindow in each event. I need only one     radwindow.

     

    RadWindow newwindow = new RadWindow();

     

        public void BtnColumnPopup_Click(object sender, EventArgs e)

            {

            

          RadWindowManagerProperty.Visible = true;

                newwindow.ID = "radWinProInfo1";

                newwindow.NavigateUrl = "DynamicReportColumn.aspx";

                newwindow.Behaviors = Telerik.Web.UI.WindowBehaviors.Close;

                newwindow.Modal = true;

                newwindow.Width = 850;

                newwindow.Height = 625;

                newwindow.Skin = "Web20";

                newwindow.VisibleOnPageLoad = true;

                RadWindowManagerProperty.Windows.Add(newwindow);

     

            }

    let me know how can i fix this problem.

    Thanks
    G. Manikandan

  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 02 Mar 2010 Link to this post

    Hi mani,

    Since RadWindow for ASP.NET AJAX Q3 2009, when a RadWindow is declared in  RadWindowManager it preserves its ViewState which was not so in previous versions. This leads to backwards incompatibility when the VisibleOnPageLoad property is used in this configuration with the idea to show the RadWindow only once. Possible solutions for this case are the following ones:
    • Set EnableViewState = "false" for the RadWindowManager
    • Reset the VisibleOnPageLoad property to false with code when suitable, depending on the particular scenario
    • Show the RadWindow through registering a script from the server instead.


    All the best,
    Georgi Tunev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. mani
    mani avatar
    38 posts
    Member since:
    Feb 2009

    Posted 03 Mar 2010 Link to this post

    Hi
         I tried as you given Solutions. But still the number of window is opening for event. I am using Telerik Q3 2009 .   Please let me know how can i solved this problem. and also i tried all possible.

          public void BtnColumnPopup_Click(object sender, EventArgs e)
            {           
                RadWindowManagerProperty.Visible = true;
                newwindow.ID = "radWinProInfo1";
                newwindow.NavigateUrl = "DynamicReportColumn.aspx";
                newwindow.Behaviors = Telerik.Web.UI.WindowBehaviors.Close;
                newwindow.Modal = true;
                newwindow.Width = 850;
                newwindow.Height = 625;
                newwindow.Skin = "Web20";
                newwindow.EnableViewState = false;
               newwindow.VisibleOnPageLoad = true;
               // newwindow.VisibleOnPageLoad = false;
                RadWindowManagerProperty.Windows.Add(newwindow);

            }

    Thanks
    G. Manikandan




  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 08 Mar 2010 Link to this post

    Hi mani,

    I see in your code that you are setting EnableViewState to the RadWindow - as noted in the documentation and my previous post, you should set it to the RadWindowManager.

    If you still experience problems after that, please open a support ticket and send us a small sample project so we could examine your setup. Once we have a better view over your scenario, we will provide you with the most appropriate solution.


    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top