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.
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)
As New
Hope this helps.
Regards,
Lyuba Petrova
Developer Support Engineer
Infragistics
www.infragistics.com/support
Thank you Lyuba. I actually have this in my code but I thought I had to have it for each tab. I now have it in a loop and it's working great. Now I'm trying to use the TabClick event to add fields to my tabs. Could you recommend a good place to find examples of this?