RadAjaxManager: problem on second call back

2 posts, 0 answers
  1. Sathish
    Sathish avatar
    25 posts
    Member since:
    Dec 2008

    Posted 14 Jan 2010 Link to this post


    I am trying to implement radajax manager. Here is the structure of my program

    Content page

    the rad script manager is in global masterpage and module masterpage has one scriptmanagerproxy for a composite script and the module masterpage has the radajaxloading panel to show ajax progress.

    now in the content page, i got the code below. (extracted from a big page for testing and locating the problem). i'm trying to show the advanced search panel (pnlSearchCriteria) when you click on the lnkShowAdvancedSearch and Hide it from lnkHideAdvancedSearch (which is inside pnlSearchCriteria) The first time, the control behaves as expected. the next time i click on lnkshowadvancedsearch button, the pnlsearchcriteria does not show up and the progress area (radajaxloadingpanel) shiows activity and goes on forever. in the project configuration wizard i have all of them enabled.

    here is the aspx code and followed by the vb code

    <%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPage.master" 
        CodeBehind="WebForm2.aspx.vb" Inherits="ERP.OM.WebForm2" %> 
    <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"
    <asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server"
        <span style="padding-right: 10px">|</span> 
        <asp:LinkButton ID="lnkShowAdvancedSearch" runat="server" CausesValidation="false" 
            Text="Advanced Search" /> 
        <asp:Panel runat="server" ID="pnlSearchCriteria" Visible="false" CssClass="SearchSOAdvancedSearchPanel"
            <table id="tblAdvancedSearch" runat="server" width="100%"
                    <td style="border-right: solid 1px #EEEEEE; border-bottom: solid 1px #EEEEEE"
                        <span>Sales Person</span> 
                        <br /> 
                        <erp:Employees ID="ddlSearchSalesPerson" runat="server" AutoPostBack="true" /> 
                    <td style="border-right: solid 1px #EEEEEE; border-bottom: solid 1px #EEEEEE"
                        <br /> 
                        <erp:SalesOrderStatuses runat="server" ID="ddlSearchSalesOrderStatus" AutoPostBack="true" /> 
                    <td style="border-right: solid 1px #EEEEEE; border-bottom: solid 1px #EEEEEE"
                        <span>Order Type </span> 
                        <br /> 
                        <erp:SalesOrderTypes runat="server" ID="txtSearchSalesOrderTypes" AutoPostBack="true" /> 
                    <td style="border-right: solid 1px #EEEEEE; border-bottom: solid 1px #EEEEEE"
                        <span>Created By</span> 
                        <br /> 
                        <erp:Employees ID="ddlSearchCreatedBy" runat="server" AutoPostBack="true" /> 
                    <td width="100px" align="center" valign="bottom"
                        <asp:LinkButton ID="lnkGoAdvancedSearch" runat="server" Text="(search)" /> 
                        <asp:LinkButton ID="lnkHideAdvancedSearch0" runat="server" CausesValidation="false" 
                            Text="(close)" /> 
        <telerik:RadGrid runat="server" ID="gvResults" AllowPaging="True" AllowSorting="True" 
            AutoGenerateColumns="False" GridLines="None"
            <MasterTableView runat="server" PageSize="50" AllowMultiColumnSorting="true"
                    <telerik:GridTemplateColumn HeaderText="Order No." SortExpression="SalesOrderNo"
                        <ItemStyle Width="60px"></ItemStyle> 
                            <asp:HyperLink ID="hlkSalesOrderID" runat="server" CausesValidation="false" NavigateUrl='<%# "~/SearchSalesOrders.aspx?SalesOrderID=" & Eval("SalesOrderID") %>' 
                                Text='<%# Eval("SalesOrderNo") %>' /> 
                        <ItemStyle Width="60px" HorizontalAlign="Center" /> 
        <telerik:RadAjaxManager ID="ramSearchSO" runat="server" UpdatePanelsRenderMode="Inline"
                <telerik:AjaxSetting AjaxControlID="lnkShowAdvancedSearch"
                        <telerik:AjaxUpdatedControl ControlID="pnlSearchCriteria" /> 
                <telerik:AjaxSetting AjaxControlID="pnlSearchCriteria"
                        <telerik:AjaxUpdatedControl ControlID="gvResults" /> 
                <telerik:AjaxSetting AjaxControlID="lnkGoAdvancedSearch"
                        <telerik:AjaxUpdatedControl ControlID="gvResults" /> 
                <telerik:AjaxSetting AjaxControlID="lnkHideAdvancedSearch"
                        <telerik:AjaxUpdatedControl ControlID="lnkShowAdvancedSearch" /> 
                        <telerik:AjaxUpdatedControl ControlID="pnlSearchCriteria" /> 

        Private Sub lnkShowAdvancedSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lnkShowAdvancedSearch.Click 
            pnlSearchCriteria.Visible = True 
            lnkShowAdvancedSearch.Enabled = False         
        End Sub 
        Protected Sub lnkHideAdvancedSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lnkHideAdvancedSearch0.Click 
            lnkShowAdvancedSearch.Enabled = True 
            pnlSearchCriteria.Visible = False 
        End Sub 

    please help. thanks
  2. Veli
    Veli avatar
    2002 posts

    Posted 20 Jan 2010 Link to this post

    Hi Sathish,

    RadAjaxManager should go into the Global_masterpage. For the content page, you need to use RadAjaxManagerProxy. For more info:

    AJAX Manager Proxy

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top