Is there a way to use multipage with the panelbar control. I want to utilize similar functionality as in the "Defining the RadMultiPage structure in the code-behind" example in the online help for the tabstrip control. The panelbar doesn't have integration with multipage as does the tabstrip so I am not sure the same functionality can be accomplished. I would like to load a custom user control in the page view upon clicking a particular item or subitem on the panelbar. This is the code I am using for the tabstrip. I would like to have the same functionality using the panelbar.
Imports
Telerik.Web.UI
Partial
Class inventory_4
Inherits System.Web.UI.Page
Private Function ReplaceSpaces(ByVal RepString As String)
ReplaceSpaces = RepString.Replace(
" ", "_")
ReplaceSpaces = ReplaceSpaces.ToString
End Function
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
AddTab(
"Store")
AddTab(
"Marketplaces")
AddTab(
"Shopping Feeds")
End If
End Sub
Private Sub AddTab(ByVal tabName As String)
Dim tab As New RadTab()
tab.Text = (tabName)
RadTabStrip1.Tabs.Add(tab)
Dim pageView As New RadPageView()
pageView.ID = tabName
RadMultiPage1.PageViews.Add(pageView)
End Sub
Protected Sub RadMultiPage1_PageViewCreated(ByVal sender As Object, ByVal e As RadMultiPageEventArgs) Handles RadMultiPage1.PageViewCreated
Dim FunctionPage As String
FunctionPage =
"inventory_"
Dim userControlName As String = FunctionPage & ReplaceSpaces(e.PageView.ID) & ".ascx"
Dim userControl As Control = Page.LoadControl(userControlName)
userControl.ID = ReplaceSpaces(e.PageView.ID) &
"_userControl"
e.PageView.Controls.Add(userControl)
End Sub
Thank you in advance.
DMY