RadWindowManager inside RadAjaxPanel

3 posts, 0 answers
  1. Felix
    Felix avatar
    22 posts
    Member since:
    Apr 2008

    Posted 11 Mar 2010 Link to this post


    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"
    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="">

    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

    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. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 15 Mar 2010 Link to this post

    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.
  3. Felix
    Felix avatar
    22 posts
    Member since:
    Apr 2008

    Posted 16 Mar 2010 Link to this post


    EnableAjaxSkinRendering = true for the RadWindowManager inside showmodal func.
Back to Top