Good day,
lately i have been battling with adding a label control inside a child tab so that i could display the challengers on after clicking on that tab
here is my code below...
private void LoadTournament(EventCollection eventCollection, RadTabStrip radTabStrip)
{
RadMultiPage Multiview = new RadMultiPage();
Multiview.ID = "Multiview1";
RadPageView PageView = new RadPageView();
//Pageview.ID = "";
//Pageview.ID ="";
foreach (RadTab tb in radTabStrip.Tabs)
{
int iSportId = int.Parse(tb.Value);
tb.ScrollChildren = true;
foreach (var ev in eventCollection.Events)
{
if (ev.SportID == iSportId)
{
// Create new to a RadTab.
RadTab tab = new RadTab();
tab.Value = ev.TournamentID.ToString();
tab.Text = ev.Tournament;
tb.Tabs.Add(tab);
foreach (var item in ev.Challengers)
{
Label label = new Label();
label.Text = item.Name;
tb.PageViewID = "Page1";
tb.SelectedIndex = tab.Index;
radTabStrip.MultiPageID = "Multiview1";
// RadPageView PageView = loadchallenger(eventCollection);
PageView.ID = "Page1";
PageView.Height = 500;
Multiview.PageViews.Add(PageView);
}
//foreach (var item in ev.Challengers )
//{
// TextBoxTemplate template = new TextBoxTemplate();
// Label label = new Label();
// label.Text = item.Name;
// Pageview.Controls.Add(label);
//}
}
}
}
}
I would like to add labels inside a child tab please help anyone,
please below capture