Reimers Google Map not loading by RadAjaxManagerProxy with in a user control

1 posts, 0 answers
  1. Shivam
    Shivam avatar
    4 posts
    Member since:
    May 2013

    Posted 26 Jun 2013 Link to this post

    Hello Telerk,
                I am using two use controls GoogleMaps.ascx and GMaps.ascx.The GMaps.ascx is inside the GoogleMaps.ascx.I am using a RadListbox on 
    GoogleMaps.ascx to load the map on GMaps.ascx.Everything was working fine but my client requested to ajaxify the RadListBox so I have added a 
    RadAjaxManagerProxy to the GoogleMaps.ascx.But after adding this my map is not showing if i added another control below or upper to the map that is
    working fine but map still not showing(ResponseScript not coming) please suggest ASAP.......
    Here is my code.....
    GoogleMaps.ascx-:
    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GoogleMaps.ascx.cs"
        Inherits="BSL.TaylorWimpey.SMTS.Web.Assets.Controls.Mapping.GoogleMaps" %>
    <%@ Register Src="~/Assets/Controls/Mapping/GMaps.ascx" TagName="GMaps" TagPrefix="uc1" %>
     
     
    <telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1" runat="server" >
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="radListBoxSites">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="panel1" LoadingPanelID="RadAjaxLoadingPanel1"  />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
       <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"></telerik:RadAjaxLoadingPanel>
     <div id="mapSitename">
           <telerik:RadListBox  ID="radListBoxSites" runat="server" DataTextField="Name" AutoPostBack="true"
                DataValueField="SiteID" Height="219" Width="150"  Font-Bold="True" OnSelectedIndexChanged="radListBoxSites_SelectedIndexChanged" >
            </telerik:RadListBox>    
    </div>
    <asp:Panel ID="panel1" runat="server">
        <uc1:GMaps ID="gmapSites" runat="server" Width="800" Height="370" ></uc1:GMaps>
    </asp:Panel>


    GMaps.ascx-:

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GMaps.ascx.cs" Inherits="BSL.TaylorWimpey.SMTS.Web.Assets.Controls.Mapping.GMaps" %>
    <%@ Register Assembly="Reimers.Google.Map" Namespace="Reimers.Google.Map" TagPrefix="Reimers" %>
     
    <Reimers:Map ID="mapSites" runat="server" Width="100%" Height="400px"
     OnOverlayClick="HandleOverlayClick" MapLanguage="en-GB" >
        <Center Latitude="0" Longitude="0" />
    </Reimers:Map>


Back to Top