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?
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?