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

RadWindow Conflicts with RadAjaxManager

1 Answer 159 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ahmed
Top achievements
Rank 1
Ahmed asked on 05 Sep 2012, 07:04 PM
My RadWindow Conflicts with RadAjaxManager it makes it appears twice one behind one i don't know what is the problem ...i show my radwindow from server side using VisibleOnPageLoad=true ..
When i Remove my RadAjaxManager it works fine with me so what is the problem
<asp:UpdatePanel ID="pnlMyCalendar" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="pnlScheduler">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="pnlScheduler" LoadingPanelID="ralp" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
 
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="ralp" runat="server" InitialDelayTime="0" MinDisplayTime="1000"
            Transparency="25">
            <table style="width: 100%; height: 100%; background-color: white;">
                <tr style="height: 100%">
                    <td align="center" valign="middle" style="width: 100%">
                        <asp:Image ID="Image2" runat="server" ImageUrl="~/DesktopModules/UCPScheduler/loading1.gif"
                            AlternateText="loading" />
                    </td>
                </tr>
            </table>
        </telerik:RadAjaxLoadingPanel>
                <asp:Panel ID="pnlScheduler" runat="server">
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
        </telerik:RadWindowManager>
        <telerik:RadWindow runat="server" ID="wdoMyCalendar" RestrictionZoneID="ContentTemplateZone"
             Modal="true" Width="500px" Behaviors="Resize, Close, Move">
            <ContentTemplate>
                <div style="background-color: #00738E">
                    <div id="divAppointmentHistory" runat="server" />
                    <telerik:RadGrid ID="gvwAppointmentHistory" runat="server" GridLines="None" AutoGenerateColumns="False"
                        idth="410px">
                        <FilterMenu EnableImageSprites="False">
                        </FilterMenu>
                        <MasterTableView AutoGenerateColumns="False" DataKeyNames="AppointmentHistoryID"
                            CommandItemDisplay="None">
                            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridBoundColumn DataField="CreatedDate" DataType="System.DateTime" FilterControlAltText="Filter Change Date/Time column"
                                    HeaderText="Change Date/Time" SortExpression="CreatedDate" UniqueName="CreatedDate">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Description" DataType="System.String" FilterControlAltText="Filter Description column"
                                    HeaderText="Change Description" SortExpression="Description" UniqueName="Description">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="StatusName" DataType="System.String" FilterControlAltText="Filter Status column"
                                    HeaderText="Status" SortExpression="StatusName" UniqueName="StatusName">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="CreatedByName" DataType="System.String" FilterControlAltText="Filter Changed By column"
                                    HeaderText="Changed By" SortExpression="CreatedByName" UniqueName="CreatedByName">
                                </telerik:GridBoundColumn>
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>
                </div>
            </ContentTemplate>
        </telerik:RadWindow>
 
          .....
        </asp:Panel>
        <asp:Button ID="btnSubmit" runat="server" Text="Button" Style="display: none" OnClick="btnSubmit_Click" />
        <asp:HiddenField ID="hfCurAppointmentID" runat="server" />
    </ContentTemplate>
</asp:UpdatePanel>

1 Answer, 1 is accepted

Sort by
0
rdmptn
Top achievements
Rank 1
answered on 06 Sep 2012, 11:47 AM
I am not sure exactly what you are trying to do, but here are some problems I see with the snippet you sent:

1) take the RadAjaxManager out of the update panel, it is a control that creates update panels

2) open the RadWindow from the code-behind as suggested in the sticky thread at the top of the section: http://www.telerik.com/community/forums/aspnet-ajax/window/opening-radwindow-from-the-server.aspx.

3) take the RadWindow out of the update panel and the panel updated by the RadAjaxManager. If you need AJAX inside its ContentTemplate - this article will tell you how to do it: http://www.telerik.com/help/aspnet-ajax/window-ajaxifying.html.
Tags
Window
Asked by
Ahmed
Top achievements
Rank 1
Answers by
rdmptn
Top achievements
Rank 1
Share this question
or