"Load On Demand" not working in Q1 2010

2 posts, 0 answers
  1. Jones
    Jones avatar
    5 posts
    Member since:
    Apr 2010

    Posted 30 Apr 2010 Link to this post

    I've implemented the Load On Demand for the RadTabStrip & RadMultiPage and followed the sample show in http://demos.telerik.com/aspnet-ajax/tabstrip/examples/applicationscenarios/loadondemand/defaultcs.aspx . My Second and Third tabs load user controls in them.

    This working fine with the Q3 2009 Trial Version, but when I purchased the Q1 2010 Developer Version, this stopped working and I receive and error "Two components with the same id 'mpageMain' can't be added to the application".

    Here is my ASPX
    <%@ Page   
        Inherits="Telerik.OnDemandLoad" %> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml" > 
        <title>On Demand Load</title> 
        <form id="frmOnDemandLoad" runat="server">  
        <asp:ScriptManager ID="smgrMain" runat="server" /> 
            OnTabClick="tsMain_TabClick" > 
                <telerik:RadTab Text="Alpha" PageViewID="pvAlpha" /> 
                <telerik:RadTab Text="Beta" PageViewID="Beta"/>  
                <telerik:RadTab Text="Gama" PageViewID="Gama"/>  
            <telerik:RadPageView ID="pvAlpha" runat="server">Alpha</telerik:RadPageView> 
        <telerik:RadAjaxManager ID="amgrMain" runat="server">  
                <telerik:AjaxSetting AjaxControlID="tsMain">  
                        <telerik:AjaxUpdatedControl ControlID="tsMain" /> 
                        <telerik:AjaxUpdatedControl ControlID="mpageMain" LoadingPanelID="alpDefault" /> 
                <telerik:AjaxSetting AjaxControlID="mpageMain">  
                        <telerik:AjaxUpdatedControl ControlID="mpageMain" LoadingPanelID="alpDefault" /> 
        <telerik:RadAjaxLoadingPanel ID="alpDefault" runat="server" /> 
        <telerik:RadScriptBlock ID="rcbMain" runat="server">  
            <script language="javascript" type="text/javascript">  
                function tsMain_ClientTabSelecting(sender, args)    
                    if (args.get_tab().get_pageView())    

    And my code behind
            private void AddPageView(string pageViewID)  
                RadPageView pageView = new RadPageView();  
                pageView.ID = pageViewID;  
            protected void tsMain_TabClick(object sender, RadTabStripEventArgs e)  
                if (e.Tab.PageView == null)  
                    e.Tab.PageViewID = e.Tab.Text;  
                e.Tab.PageView.Height = Unit.Pixel(e.Tab.Index * 100); 
                e.Tab.PageView.Selected = true;  
            protected void mpageMain_PageViewCreated(object sender, RadMultiPageEventArgs e)  
                // Load the User Control  
                //string strUserControl = "~/UserControls/" + e.PageView.ID + ".ascx";  
                //Control objControl = Page.LoadControl(strUserControl);  
                //objControl.ID = e.PageView.ID + "_userControl";  

    I can no longer use Q3 2009 as it has the Grid's OnCommand Client Event problem.

    Is there anything different to be done for the Q1 2010 version?
  2. Yana
    Yana avatar
    5043 posts

    Posted 03 May 2010 Link to this post

    Hi Jones,

    Please check this forum post for more details about this issue.

    All the best,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top