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

AJax not firing

1 Answer 51 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 09 May 2012, 03:17 PM
I've got my RadAjaxManager and  RadAjaxLoadingPanel on my master page. My RadMenu is being registered. I have two panels on the page, one is initially hidden. when the RadMenu item is selected, the two panels swap visibility. Ajax is not firing and I get a full post back each time a menu item is clicked.

It looks like it should be working, at least to me. Here's my code...

Thanks!
John

<asp:Panel ID="WelcomePanel" runat="server">
     
<div id="WelcomeMsg" style="margin-left:20px; margin-right:20px; text-align:center;">
<span style="font-weight: bold; font-size: medium; text-align: center;">SCMS Management System Owner / Point-Of-Contact<br />
Requirements Management Interface</span>
<br /> <p style="text-align:justify;">
 
The Office of SCience Management System (SCMS) is primarily a tool for setting institutional standards and conveying related information to staff. It is also the tool by which SC develops, integrates, and demonstrates SC's conformance to requirements.
 
</p><br />
<p style="text-align:left;">
 
Click on one of the High-Level SCMS Requirements to display its detail.
 
</p>
 
</div>
</asp:Panel>
 
 
 
    <asp:Panel ID="Panel1" runat="server">
     
    <div id="inactive" style="text-align:center;">
        <asp:Label ID="lblInactive" runat="server" Text="-- INACTIVE REQUIREMENT --" ForeColor="Red" Font-Bold="True"></asp:Label>
    </div>
    <h1 style="top: 20px; right: 20px; bottom: 20px; left: 20px; text-align: center; margin-bottom: 20px; margin-top: 10px;">
        <asp:PlaceHolder ID="Header_PlaceHolder" runat="server"></asp:PlaceHolder>
    </h1>
    <h2 style="top: 20px; right: 20px; bottom: 20px; left: 20px; text-align: center; margin-bottom: 20px; margin-top: 10px; font-size: medium;">
        <asp:PlaceHolder ID="Header2_PlaceHolder" runat="server"></asp:PlaceHolder>
    </h2>
    <div class="titleLarge">Management Systems</div><br />
    <ul class="RDRImp">
        <asp:PlaceHolder ID="MS_PlaceHolder" runat="server"></asp:PlaceHolder>
    </ul>
    <div class="titleLarge">Policies</div><br />
    <div style="text-align: center;"><asp:Label ID="lblNoPolicies" runat="server" Text="None" Font-Bold="True" Font-Size="Medium"></asp:Label>
    </div>
    <ul class="RDRImp">
        <asp:PlaceHolder ID="Policy_PlaceHolder" runat="server"></asp:PlaceHolder>
    </ul>
    <div class="titleLarge">Subject Areas / Procedures</div><br />
    <div style="text-align: center;"><asp:Label ID="lblNoSAs" runat="server" Text="None" Font-Bold="True" Font-Size="Medium"></asp:Label>
    </div>
    <ul class="RDRImp">
        <asp:PlaceHolder ID="SA_PlaceHolder" runat="server"></asp:PlaceHolder>
    </ul>
 
    <div class="titleLarge">RDR Actions</div><br />
 
    <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False"
        CssClass="RadGrid_Default" CellSpacing="0" style="margin-left: 20px !important; margin-right: 20px !important;" ItemStyle-VerticalAlign="Top">
        <MasterTableView>
        <Columns>
 
        <telerik:GridBoundColumn DataField="Comments"
            FilterControlAltText="Filter line column" HeaderText="Action" UniqueName="Action" FilterControlWidth="150px">
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Bottom"></HeaderStyle>
        </telerik:GridBoundColumn>
 
        <telerik:GridBoundColumn DataField="DueDate"
            FilterControlAltText="Filter line column" HeaderText="Planned" UniqueName="Planned" FilterControlWidth="150px"
            DataFormatString = "{0:MM/dd/yyyy}">
        </telerik:GridBoundColumn>
 
        <telerik:GridBoundColumn DataField="CompDate"
            FilterControlAltText="Filter line column" HeaderText="Complete" UniqueName="Complete" FilterControlWidth="150px"
            DataFormatString = "{0:MM/dd/yy}">
        </telerik:GridBoundColumn>
 
        <telerik:GridBoundColumn DataField="ActionOwner"
            FilterControlAltText="Filter line column" HeaderText="Action Owner" UniqueName="ActionOwner" FilterControlWidth="150px">
        </telerik:GridBoundColumn>
 
        </Columns>
        </MasterTableView>
    </telerik:RadGrid>
 
<br /> 
    <div class="titleLarge">Training</div>
    <div style="text-align: center; margin-top: 20px;"><asp:Label ID="lblNoTraining" runat="server" Text="None" Font-Bold="True" Font-Size="Medium"></asp:Label>
    </div>
    <ul class="RDRImp">
        <asp:PlaceHolder ID="Training_PlaceHolder" runat="server"></asp:PlaceHolder>
    </ul>
 
    <div style="text-align:center;">
    <br />
        <asp:Label ID="Label1" runat="server" Text="RDR Initiate Date:"></asp:Label>  
        <asp:Label ID="lblInitiateDate" runat="server" Text=""></asp:Label>
    <br />
        <asp:Label ID="Label2" runat="server" Text="RDR Approval Date:"></asp:Label>  
        <asp:Label ID="lblApprovalDate" runat="server" Text=""></asp:Label>
    <br />
        <asp:Label ID="Label3" runat="server" Text="RDR Approved By:"></asp:Label>  
        <asp:Label ID="lblApprovedBy" runat="server" Text=""></asp:Label>
 
    </div>
 
 
    </asp:Panel>
 
 
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadMenu1" >
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="WelcomePanel" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 14 May 2012, 09:09 AM
Hi John,

Note that you could not add control which is initially invisible on the page, to the RadAjaxManager settings. The initiator or the updated control should be always placed in a visible container so that the manager can locate it when necessary. See the help topic below for more information on this matter:
http://www.telerik.com/help/aspnet-ajax/ajax-tips-and-tricks.html

Also please add a setting in which the RadMenu updates itself in order to ajaxify it properly.

I hope this helps.

Kind regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Ajax
Asked by
John
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or