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
290
Tabs on the Fly
posted

Hi.  I'm building my first UltraWebTab control and I would like the number of tabs to be built based on the number of records returned from a query.  If there are 6 records in the personnel table then I would want 6 tabs created, one for each person.  If I added a person to the table, the next time the control is displayed there would be 7 tabs.  Is this possible?  I would appreciate any help including code examples.  Thank you.

p.s.  I'm developing in VS 2008 using ASP.NET with VB.NET in the code behind.

Parents
No Data
Reply
  • 6748
    Verified Answer
    posted

    Hello Bill,

     

    I think this is possible. You should just iterate through your recordset and for each record you should create a tab item and add it to your tab:

            Dim aTab As New Tab("Infragistics Products")
            aTab.Key = "Tab1"
            myUltraWebTab.Tabs.Add(aTab)

    Hope this helps.

     

    Regards,

    Lyuba Petrova

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

     

Children