I am dynamically adding tabs to a pageview. How can I add subtabs?
When I click on a tab, I need the tabs within the top tab to show.
Here is the code I have. The first set of tabs work. Can't figure how to add child tabs
//create a tab for each line
DataTable dt = GetLines();
if (dt.Rows.Count > 0)
{
foreach (DataRow row in dt.Rows)
{
RadPageViewPage newLine = new RadPageViewPage();
newLine.Text = row["DEPARTMENT_DESCRIPTION"].ToString();
pvMain.Pages.Add(newLine);
//get the list of what runs on each line (by Department_id)
DataTable dtLines = GetLineDepartments(Convert.ToInt16(row["DEPARTMENT_ID"].ToString()));
if (dtLines.Rows.Count > 0)
{
foreach (DataRow rowDept in dtLines.Rows)
{
// add depts tabs to the line
RadPageViewPage newDept = new RadPageViewPage();
newDept.Text = rowDept["LINE_DESCRIPTION"].ToString();
//newLine.Controls.Add(newDept); //how do I add to the newline RadPageViewPage
newLine.
}
}
}
}