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
5549
Multi Rows Tab -How to tell which Tab in which Row
posted

Hi, i have a multi rows tab. Now i add Tabs to my Tab. But how can i say which Tab should go Row0 and which to Row1 ???

I can find no property. I can only set NextRow=True, but no real Ordner or Position



 <igtab:UltraWebTab ID="UltraWebTab1" runat="server" DisplayMode="MultiRow"
        SelectedTab="6">
        <Tabs>
            <igtab:Tab Text="Test0">
            </igtab:Tab>
            <igtab:Tab Text="test2">
            </igtab:Tab>
            <igtab:Tab Text="test4">
            </igtab:Tab>
            <igtab:Tab NextRow="True" Text="Test1">
            </igtab:Tab>
            <igtab:Tab Text="wusel">
            </igtab:Tab>
            <igtab:Tab Text="wusel3">
            </igtab:Tab>
            <igtab:Tab Text="wusel5">
            </igtab:Tab>
            <igtab:Tab Text="willo">
            </igtab:Tab>
        </Tabs>
    </igtab:UltraWebTab>

Parents
  • 28407
    posted

    HI, you can determine the row a tab is on by traversing thru the tab collection and counting when the tab's nextrow prperty is set to true.

    Here is a code snippet:

     int row = 0;
            Label1.Text = " ";
            for (int i = 0; i < UltraWebTab1.Tabs.Count; i++)
            {
                if (UltraWebTab1.Tabs[i].NextRow)
                {
                    row++;
                }
                Label1.Text   += UltraWebTab1.Tabs[i].Text + " is on row " +  row.ToString() + " ";
            }

     I am attaching a website as well.

Reply Children