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
45
UltrawebTab min Height
posted

Hello,

I want to know if it is possible to give a minimum height to ultratab and if the content of the tab grows the tab grow with the content, because if i put a height to the tab.....tha tab does not grow

  • 24497
    posted

    Hi David,

    I can suggest you to find reference to html element which represents ContentPane of webtab and set its minHeight. That element has id tab.ClientID+'_cp'.
    Below is example for you.

      <script type="text/javascript">
      function initTab(webTab)
      {
       var cp = document.getElementById(webTab.ID + '_cp');
       cp.style.minHeight = '200px';
      }
      </script>
      <igtab:UltraWebTab ID="UltraWebTab1" runat="server">
       <ClientSideEvents InitializeTabs="initTab" />
       <Tabs>
        <igtab:Tab Text="New Tab">
         <ContentTemplate>
          <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
         </ContentTemplate>
        </igtab:Tab>
        <igtab:Tab Text="New Tab">
         <ContentTemplate>
          <div style='border:1px solid red;background:orange;width:400px;height:400px;'></div>
         </ContentTemplate>
        </igtab:Tab>
       </Tabs>
      </igtab:UltraWebTab>