AJax not firing

2 posts, 0 answers
  1. John
    John avatar
    24 posts
    Member since:
    Jan 2011

    Posted 09 May 2012 Link to this post

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


    <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.
        <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>
        <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>
        <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>
        <div class="titleLarge">Management Systems</div><br />
        <ul class="RDRImp">
            <asp:PlaceHolder ID="MS_PlaceHolder" runat="server"></asp:PlaceHolder>
        <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>
        <ul class="RDRImp">
            <asp:PlaceHolder ID="Policy_PlaceHolder" runat="server"></asp:PlaceHolder>
        <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>
        <ul class="RDRImp">
            <asp:PlaceHolder ID="SA_PlaceHolder" runat="server"></asp:PlaceHolder>
        <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">
            <telerik:GridBoundColumn DataField="Comments"
                FilterControlAltText="Filter line column" HeaderText="Action" UniqueName="Action" FilterControlWidth="150px">
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Bottom"></HeaderStyle>
            <telerik:GridBoundColumn DataField="DueDate"
                FilterControlAltText="Filter line column" HeaderText="Planned" UniqueName="Planned" FilterControlWidth="150px"
                DataFormatString = "{0:MM/dd/yyyy}">
            <telerik:GridBoundColumn DataField="CompDate"
                FilterControlAltText="Filter line column" HeaderText="Complete" UniqueName="Complete" FilterControlWidth="150px"
                DataFormatString = "{0:MM/dd/yy}">
            <telerik:GridBoundColumn DataField="ActionOwner"
                FilterControlAltText="Filter line column" HeaderText="Action Owner" UniqueName="ActionOwner" FilterControlWidth="150px">
    <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>
        <ul class="RDRImp">
            <asp:PlaceHolder ID="Training_PlaceHolder" runat="server"></asp:PlaceHolder>
        <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>
        <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
                <telerik:AjaxSetting AjaxControlID="RadMenu1" >
                        <telerik:AjaxUpdatedControl ControlID="WelcomePanel" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" />

  2. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 14 May 2012 Link to this post

    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:

    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.
Back to Top