Hi
The problem I am having is that when I put a RadAjaxPanel around my RadMap a postback to update the RadClientDataSource needs to be clicked twice in order for the select url to be called. It works fine if I remove the ajax panel.
<telerik:RadAjaxPanelrunat="server"> <telerik:RadTabStripID="connectionsTabStrip"runat="server"MultiPageID="connectionsMultiPage"> <Tabs> <telerik:RadTabText="Map"PageViewID="mapPageView"/> </Tabs> </telerik:RadTabStrip> <telerik:RadMultiPageID="connectionsMultiPage"runat="server"> <telerik:RadPageViewID="mapPageView"runat="server"> <telerik:RadClientDataSourcerunat="server"ID="tripDataSource"AutoSync="true"> <DataSource> <WebServiceDataSourceSettingsServiceType="GeoJSON"/> </DataSource> </telerik:RadClientDataSource> <telerik:RadButtonID="button"runat="server"Text="View"OnClick="button_Click"/> <telerik:RadMaprunat="server"ID="tripMap"> <LayersCollection> <telerik:MapLayer></telerik:MapLayer> <telerik:MapLayerType="Shape"ClientDataSourceID="tripDataSource"> <StyleSettings> <StrokeSettingsColor="#ffffff"Width="10"/> </StyleSettings> </telerik:MapLayer> </LayersCollection> <DataBindings> <MarkerBinding DataShapeField="shape" DataTitleField="title" DataLocationLatitudeField="locationLatitude" DataLocationLongitudeField="locationLongitude" DataTooltipTemplateField="tooltipTemplate"/> </DataBindings> <CenterSettings Latitude="-32.962926" Longitude="151.699727"/> </telerik:RadMap> </telerik:RadPageView> </telerik:RadMultiPage> </div> <uc1:ExceptionArearunat="server"ID="ExceptionArea"/></telerik:RadAjaxPanel>
I have some code behind on the button click "button_Click"
tripDataSource.DataSource.WebServiceDataSourceSettings.Select.Url = "/Data/GetJsonTrip.aspx";tripDataSource.DataBind();tripMap.DataSource = GetMarkers();tripMap.DataBind();
If I put a break point in GetJsonTrip.aspx I can see it only gets called, on the first click, but does get called on every click after that.
If I set WebServiceDataSourceSettings.Select.Url in a partial post back, why does the indicated URL not get called after the first postback?
Thanks for any help
Matt