Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
200
Setting WebTab to Height 100%
posted

Hello,

I just started to work with NetAdvantage tools for asp.net. And I'm not very exerpienced in asp.net development yet.

My first problem I have now is setting the height of a webTab control to 100%. The webTab control is placed in an usercontrol, that in turn is placed in a webSplitter in the aspx page.

With:
<ig:WebTab ID="tabWorkspace" runat="server" Height="100%" Width="100%">
    <Tabs>
        <ig:ContentTabItem runat="server" Text="Start"
            ContentUrl="Start/start.htm" ScrollBars="Hidden" Height="100%">
        </ig:ContentTabItem>
    
    </Tabs>
</ig:WebTab>

I got exact what I want. The webTab uses the complete vertical space of the page.

But after I have added an UpdatePanel:
<asp:UpdatePanel ID="UpdatePanel1" runat="server" Height="100%">
<ContentTemplate>
<ig:WebTab ID="tabWorkspace" runat="server" Height="100%" Width="100%">
    <Tabs>
        <ig:ContentTabItem runat="server" Text="Start"
            ContentUrl="Start/start.htm" ScrollBars="Hidden" Height="100%">
        </ig:ContentTabItem>
     
    </Tabs>
</ig:WebTab>
</ContentTemplate>
</asp:UpdatePanel>

the 100% height got lost. The webTab is set to a fixed height, from which I don't know where it comes from. The content is larger than the webTab space and a vertical scrollbar appears.

All attempts to set the height back to 100% failed. I have tried to set the UpdatePanel height to 100% and also tried to set the height to 100% in code behind. Pagel Load and Page Prerender events for usercontrol and main page.

Can anybody give me a hint what can be wrong?

best regards
Andreas

Parents Reply Children