Feb 03, 2012, 3:13 PM
[CLOSED] ext.UserControlLoader in CodeBehind
Hi
I try add my own usercontrol in a tabPanel. I´m fail!
I use a UserControlLoader... in my usercontrol, I´m use only ext.net components.
The code to Load my own usercontrol in TabPanel follows:
Occurs two problems:
1 - Add only one tab in tabPanel... I try add many tabs.
2 - The content of usercontrolLoader, (my own Usercontrol) is not show.
3 -
I believe that the problem is the usercontrolloader.addto. Is this a correct mode of add controls in UserControlLoader?
Is there any example for me to follow?
I try add my own usercontrol in a tabPanel. I´m fail!
I use a UserControlLoader... in my usercontrol, I´m use only ext.net components.
The code to Load my own usercontrol in TabPanel follows:
Occurs two problems:
1 - Add only one tab in tabPanel... I try add many tabs.
2 - The content of usercontrolLoader, (my own Usercontrol) is not show.
3 -
I believe that the problem is the usercontrolloader.addto. Is this a correct mode of add controls in UserControlLoader?
Is there any example for me to follow?
Dim tabPanelConfig As Ext.Net.Panel.Config = New Ext.Net.Panel.Config
Dim tabContext As ExplorerWebContext = New ExplorerWebContext
Dim tabPanel As Ext.Net.Panel
Dim ucLoader As Ext.Net.UserControlLoader = New Ext.Net.UserControlLoader
tabContext.Start(Context)
With tabPanelConfig
.Title = tabContext.ContextoDescription
.Closable = True
.Border = True
.Padding = 6
End With
tabPanel = New Ext.Net.Panel(tabPanelConfig)
ucLoader.AddTo(tabContext)
tabPanel.Items.Add(ucLoader)
tabWebExplorer.Items.Add(tabPanel)
tabWebExplorer.Render()
Last edited by Daniil; Feb 07, 2012 at 5:43 PM.
Reason: [CLOSED]