hi, im new in umbraco i have been working with it for about 6 weeks and i have a problem creating tabs programmatically. My problem is that i can create the tabs and add some panels and custom controls to it but i cant see them or the menu, the only thing i see are the tabs and footer but the tabpagecontainer is missing. when i see the code generated by umbraco i can see that all the controls are there but they are like hidden, and the tabpagecontainer height is set to 0, i think this is the reason why i cant see the panels and controls that i added but i dont know how to set this parameter o ther value. Does anyone knows why is this happening or how can i solve this issue?
Here is part of my code:
public global::umbraco.uicontrols.TabView TabControl;
TabPageContainer height is always 0
hi, im new in umbraco i have been working with it for about 6 weeks and i have a problem creating tabs programmatically. My problem is that i can create the tabs and add some panels and custom controls to it but i cant see them or the menu, the only thing i see are the tabs and footer but the tabpagecontainer is missing. when i see the code generated by umbraco i can see that all the controls are there but they are like hidden, and the tabpagecontainer height is set to 0, i think this is the reason why i cant see the panels and controls that i added but i dont know how to set this parameter o ther value. Does anyone knows why is this happening or how can i solve this issue?
Here is part of my code:
public global::umbraco.uicontrols.TabView TabControl;
protected override void OnInit(EventArgs e) {
TabControl = new umbraco.uicontrols.TabView() { Width = 500, Height = 692 };
TabControl.Visible = true;
var firstTab = TabControl.NewTabPage("Información General");
firstTab.Width = 692;
firstTab.Height = 500;
firstTab.Enabled = true;
firstTab.HasMenu = true;
firstTab.Visible = true;
var Pane1 = new Pane { ID = "PaneGenericType", Height = 500 };
firstTab.Controls.Add(Pane1);
//then i load and add some controls and a save button to the menu
this is in the on_init method in a class that inherits from System.Web.UI.UserControl
any help will be appreciated.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.