Hi there
I have a usercontrol called ReportContainer.
This is the markup.
<telerik:RadScriptManager ID="scriptManager" runat="server" /> |
<telerik:RadTabStrip ID="tsReport" runat="server" |
ontabcreated="tsReport_TabCreated" > |
</telerik:RadTabStrip> |
And this is the codebehind.
protected void Page_Load(object sender, EventArgs e) |
{ |
if (!Page.IsPostBack) |
{ |
LoadTabs(); |
} |
} |
private void LoadTabs() |
{ |
RadTab radTabGeneral = new RadTab("General"); |
tsReport.Tabs.Add(radTabGeneral); |
} |
protected void tsReport_TabCreated(object sender, RadTabStripEventArgs e) |
{ |
TabGeneral tabGeneral = (TabGeneral)LoadControl(@"~\Report\Controls\Tabs\TabGeneral.ascx"); |
e.Tab.Controls.Add(tabGeneral); |
} |
The markup from the UserControl I try to add is this.
khjhfsqfdsqfqsddfqsfsqfsqfsqfsq |
<asp:FormView runat="server" ID="fvTabGeneral" DefaultMode="ReadOnly"> |
<ItemTemplate> |
ItemTemplate |
</ItemTemplate> |
<EditItemTemplate> |
EditItemtemplate |
</EditItemTemplate> |
</asp:FormView> |
The result looks like this.
It should use the Text property for the Tab title and the content of the Tab should show '
khjhfsqfdsqfqsddfqsfsqfsqfsqfsq ' What am I doing wrong? |