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

RadWindowManager inside RadAjaxPanel

2 Answers 68 Views
Window
This is a migrated thread and some comments may be shown as answers.
Felix
Top achievements
Rank 2
Felix asked on 11 Mar 2010, 06:53 PM
Hi,

I have a problem with modal window, that is opened form inside of   RadAjaxPanel.

I have this RadAjaxPanel tag with Timer.

<telerik:RadAjaxPanel ID="ExistReportsGrid_Panel" runat="server" Visible="false">
                            <asp:Timer ID="ExistReportsGrid_Timer" runat="server" Interval="4000" OnTick="ExistReportsGrid_Timer_Tick"
                                Enabled="false">
Timer is enabled serverside.

On timer tick I enable one button also inside ExistReportsGrid_Panel, that opens modal windows. I open modal window this way:

<Buttons:xxx ID="BtnShowModal" Text="Show graph" runat="server"  OnClick="showModal"
                    meta:resourcekey="BtnShowModal" Visible="true" />

RadWindowManager is also insde RadAjaxPanel
<telerik:RadWindowManager ID="RadWndwManager" runat="server" Behavior="Default"
                            InitialBehavior="None" Left="" style="display: none;" Top="">
</telerik:RadWindowManager>

This is function I use for opening modal wnd
        RadWindow WinPreview = new RadWindow();
        WinPreview.Width = Unit.Pixel(840);
        WinPreview.Height = Unit.Pixel(700);
        WinPreview.NavigateUrl = "~/pages/xxxx/xxxxxx.aspx?lid=" + SelectedReport.ToString();
        WinPreview.Behaviors = WindowBehaviors.Move | WindowBehaviors.Resize | WindowBehaviors.Close | WindowBehaviors.Reload | WindowBehaviors.Maximize;
        WinPreview.VisibleOnPageLoad = true;
        WinPreview.Modal = true;
        WinPreview.Title = "";
        WinPreview.VisibleStatusbar = false;
        WinPreview.KeepInScreenBounds = true;
        WinPreview.EnableEmbeddedBaseStylesheet = true; //Wenn in Codebehind dann auf true sonst kein Style
        RadWndwManager.Windows.Add(WinPreview);


When modal window shows, I get really weird Window with something like tabs, and width is near infinity.

This code works well, and gives nice window if RadWindowManager and button are outside RadAjaxPanel

see attached screenshots of modal window


2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 15 Mar 2010, 11:40 AM
Hi Felix,

Try setting EnableAjaxSkinRendering to true for the RadWindowManager in the timer's Click event. If this doesn't help, please send us a small sample project that reproduces your exact setup so we could investigate further.


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.
0
Felix
Top achievements
Rank 2
answered on 16 Mar 2010, 10:29 PM
solved.

EnableAjaxSkinRendering = true for the RadWindowManager inside showmodal func.
Tags
Window
Asked by
Felix
Top achievements
Rank 2
Answers by
Georgi Tunev
Telerik team
Felix
Top achievements
Rank 2
Share this question
or