This example demonstrates how to programmatically add and remove tabs and their associated
pageviews on the server. The implementation uses server templates and user controls to fill
the content of Tabs and the PageViews.
RadMultiPage is ajaxified by RadAjaxManager, as it updates itself and the RadTabStrip.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadMultiPage1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
<telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
Add tabs:
private void AddTab(string title)
{
var tabTemplate = new TabTemplate();
RadTab tab = new RadTab() { Text = title};
tabTemplate.InstantiateIn(tab);
RadTabStrip1.Tabs.Insert((RadTabStrip1.Tabs.Count - 1), tab);
RadTabStrip1.DataBind();
RadTabStrip1.SelectedIndex = tab.Index;
}