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:
Designer code:
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
>