This is a migrated thread and some comments may be shown as answers.

Could not load the Usercontrol with RadASyncUpload at run time in google chrome

1 Answer 72 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
tamil
Top achievements
Rank 1
tamil asked on 24 Sep 2011, 05:37 AM
Hi,
   I have a RadMultiPage & RadTabStrip. I load the pageviews on tabstrip click, and I load the corresponding usercontrol in the pageview.
All the pageviews loads and works fine. But when I load the usercontrol which has RadAsyncUpload in it, it does not works. Any guess?

Code behind:

protected void rtsPolicysettings_TabClick(object sender, RadTabStripEventArgs e)
{
    AddPageView(e.Tab);
}
  
private void AddPageView(RadTab tab)
{
    RadPageView rpvContainer = new RadPageView();
    rpvContainer.ID = tab.Value;
    rpvContainer.Height = Unit.Pixel(300);
    rmpPolicysettings.PageViews.Add(rpvContainer);
    tab.PageViewID = rpvContainer.ID;
    tab.PageView.Selected = true;
    tab.Selected = true;
}
  
protected void rmpPolicysettings_PageViewCreated(object sender, RadMultiPageEventArgs e)
{
    PolicySettings policySettings = (PolicySettings)Page.LoadControl(e.PageView.ID + ".ascx");
    policySettings.ID = "uc" + e.PageView.ID;
    e.PageView.Controls.Add(policySettings);
}

Designer code:
                                   <telerik:RadTabStrip Width="100%" Orientation="VerticalRight" AutoPostBack="True"
                                       Skin="WebBlue" ID="rtsPolicysettings" runat="server" MultiPageID="rmpPolicysettings"
                                       OnClientTabSelecting="onTabSelecting" OnTabClick="rtsPolicysettings_TabClick"
                                       SelectedIndex="5">
                                       <Tabs>
                                           <telerik:RadTab Value="AddViewQuestions" Font-Size="Small" meta:resourcekey="lnkAddViewQuestionsResource1"
                                               ImageUrl="images/enroll_ques.png">
                                           </telerik:RadTab>
                                           <telerik:RadTab Value="QuestionAnswerSettings" Font-Size="Small" meta:resourcekey="lnkQAAettingsResource1"
                                               ImageUrl="images/enroll_settings.png">
                                           </telerik:RadTab>
                                            
                                       </Tabs>
                                   </telerik:RadTabStrip>
 
<telerik:RadMultiPage ID="rmpPolicysettings" Height="300px" runat="server" OnPageViewCreated="rmpPolicysettings_PageViewCreated">
                                               </telerik:RadMultiPage>

1 Answer, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 28 Sep 2011, 02:53 PM
Hi Tamil,

I tested your scenario and everything works fine. Could you please create a sample project that reproduces your issue and send it for a local test?
Also please clarify which version of our controls you are using.

Kind regards,
Peter Filipov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
AsyncUpload
Asked by
tamil
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Share this question
or