WebUserControl1 has:
<script type="text/javascript">
function SetInterval()
{
var panel = $find("<%=RadXmlHttpPanel1.ClientID%>");
panel.set_value("yes");
}
</script>
<br />
<input type="button" value="Start Timer" onclick="SetInterval()" />
<telerik:RadXmlHttpPanel ID="RadXmlHttpPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"
OnServiceRequest="RadXmlHttpPanel1_ServiceRequest">
<asp:Label ID="Label1" runat="server" Text="Timer Not Started"></asp:Label>
</telerik:RadXmlHttpPanel>
This works, from the Page_Load adding the control:
protected void Page_Load(object sender, EventArgs e)
{
this.place.Controls.Add(LoadControl("WebUserControl1.ascx"));
}
This doesn't on a tab click adding the control and alerts "XmlHttpPanel Callback Loading error:
Exception=The target 'ctl01$RadXmlHttpPanel1' for the callback could not be found or did not implement ICallbackEventHandler.":
protected void Page_Load(object sender, EventArgs e)
{
grantTabs.TabClick += new RadTabStripEventHandler(grantTabs_TabClick);
}
void grantTabs_TabClick(object sender, RadTabStripEventArgs e)
{
this.place.Controls.Add(LoadControl("WebUserControl1.ascx"));
}
--------------------------------------------------------------------
Just making the control load on the tab click stops the XmlHttpPanel from working.
<telerik:RadTabStrip
runat="server"
ID="grantTabs"
Skin="Default">
<Tabs>
<telerik:RadTab runat="server" Text="Overview" PageViewID="overview" Selected="true" />
<telerik:RadTab runat="server" Text="Activities" PageViewID="activities" />
</Tabs>
</telerik:RadTabStrip>
<div class="tab_container">
<asp:PlaceHolder ID="place" runat="server" />
<div style="clear: both;"> </div>
</div>
Is this a bug or is there a work around?
Thanks