This is a migrated thread and some comments may be shown as answers.

rad Window is opening number of Times

3 Answers 26 Views
Window
This is a migrated thread and some comments may be shown as answers.
mani
Top achievements
Rank 1
mani asked on 02 Mar 2010, 01:50 PM

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

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 02 Mar 2010, 02:19 PM
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.
0
mani
Top achievements
Rank 1
answered on 03 Mar 2010, 03:59 PM
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




0
Georgi Tunev
Telerik team
answered on 08 Mar 2010, 12:14 PM
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.
Tags
Window
Asked by
mani
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
mani
Top achievements
Rank 1
Share this question
or