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

Problems opening RadWindow

3 Answers 54 Views
Window
This is a migrated thread and some comments may be shown as answers.
Per Granaune
Top achievements
Rank 1
Per Granaune asked on 21 Oct 2010, 01:08 PM
Hello.

I am using Telerik Q2 2010 (v.2010.2.826.20), and I'm having problems opening a RadWindow.

The structure involved is like this:

Aspx page "P" uses Masterpage "M".
"P" contains user control "A" which contains user control "B".

"B" contains a RadGrid, where the rows have a template column with an
asp:button, which fires an event with a custom delegate.

"A" responds to the event, fires a new event, which "P" responds to,
finally running method public void OpenRadWindow(string url, bool modal):

var rWindow = new RadWindow();
rWindow.NavigateUrl = url;
rWindow.AutoSize = true;
rWindow.Modal = modal;
rWindow.Title = "MÄlepunkt";
rWindow.VisibleTitlebar = true;
rWindow.VisibleStatusbar = false;
rWindow.VisibleOnPageLoad = true;
rWindow.Behaviors = Telerik.Web.UI.WindowBehaviors.Move | Telerik.Web.UI.WindowBehaviors.Close;
rWindow.ShowContentDuringLoad = false;
rWindow.IconUrl = "--";
rWindow.Skin = "Office2007";
rWindow.EnableViewState = false;

RadWindowManager1.Windows.Add(rWindow);


The method fires as it should when I press the button,
but nothing happens when the line "RadWindowManager.Windows.Add(rWindow)" is run.

This works beautifully in another solution, where I use Telerik Q1 2010,
but here the only thing that happens is that the usercontrol firing the event
just "blinks".

One difference from the solution in which this approach works, is that here we use Ajax:

"M": RadScriptManager.
"P": RadWindowManager.
"A": <RadAjaxPanel>..."B"...</RadAjaxPanel>
"B": <RadAjaxManager><UpdatedControls>...RadGrid...</UpdatedControls></RadAjaxManager> RadGrid

I've tried to put the RadWindowManager in the page "P" as well as in both user controls "A" and "B".


Is the problem related to Ajax, and what can I do?

3 Answers, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 21 Oct 2010, 01:14 PM
Hello Per,

Have you tried setting the ID for the RadWindow. I don't know if it will change anything, but maybe that could be the issue?
0
Per Granaune
Top achievements
Rank 1
answered on 21 Oct 2010, 01:17 PM
Hm - no, it made no difference:

rWindow.ID = "rWindow1";

The innermost user control "B" still just blinks with nothing more happening.
The "OpenRadWindow" method runs, but nothing happens when the window is
added to the RadWindowManager.
0
Georgi Tunev
Telerik team
answered on 22 Oct 2010, 02:06 PM
Hi Per,

If you are using Ajax (RadAjaxManager), make sure that the control that calls the code that creates the window and adds it to the manager is set as the initiator and the RadWindowManager is set as updated control in RadAjaxManager's settings.


Best wishes,
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
Per Granaune
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Per Granaune
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or