is there any way to display the parent titles page in a red bold style font and the subpage title in a regular black font programmatically in hierarchy navigation view mode
Indeed, you can change the Font for specific page. In your case, you can check whether a page has subPages and set a custom font if that is true. You can achieve that as follows:
FontFamily myFontFamily = new FontFamily("Segoe UI");
Font myFont = new Font(
myFontFamily,
12f,
FontStyle.Bold,
GraphicsUnit.Pixel);
for (int i = 0; i < this.radPageView1.Pages.Count; i++)
{
RadPageViewPage currentPage = this.radPageView1.Pages[i];
RadPageViewNavigationViewItem navigationViewItem = currentPage.Item as RadPageViewNavigationViewItem;
if (navigationViewItem.Page.SubPages.Count > 0)
{
navigationViewItem.Font = myFont;
navigationViewItem.ForeColor = Color.Red;
}
}
I hope you find this information useful.
Regards, Dimitar
Progress Telerik
Remote troubleshooting is now easier with Telerik Fiddler Jam. Get the full context to end-users' issues in just three steps! Start your trial here - https://www.telerik.com/fiddler-jam.