Hide the Header Title In PageView When In Navigation View Mode

1 Answer 316 Views
PageView
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Martin Hamilton asked on 20 Oct 2021, 02:32 PM

Is it possible to Hide the Header Title In PageView When In Navigation View Mode?

 

1 Answer, 1 is accepted

Sort by
1
Dess | Tech Support Engineer, Principal
Telerik team
answered on 21 Oct 2021, 10:32 AM
Hello, Martin,

You can hide the header element in RadPageViewNavigationViewElement by using the following code snippet: 
            RadPageViewNavigationViewElement navigationElement = this.radPageView1.ViewElement as RadPageViewNavigationViewElement;
            navigationElement.HeaderElement.Visibility = ElementVisibility.Collapsed;
I hope this information helps. If you need any further assistance please don't hesitate to contact me.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Aravind
Top achievements
Rank 2
Iron
Iron
Iron
commented on 31 May 2023, 07:49 AM

Hi
      Currently i am using 2017 version, in that if add above code will get error like "RadPageViewNavigationViewElement not defined" So pls help to hide header of radpageview when use as ExplorerBar. Here i attach screenshot, form this i have 2 pages as "Folder Index Fields" and "Document Index Fields" , if click anyone, in pageview header show that select page, but i don't want like that.


I want like this



Regards
Aravind
Dess | Tech Support Engineer, Principal
Telerik team
commented on 01 Jun 2023, 12:38 PM

Hi, Aravind,

The code snippet below shows how to hide the title for the explorer bar in RadPageView:

            RadPageViewExplorerBarElement explorerElement = this.radPageView1.ViewElement as RadPageViewExplorerBarElement; 
            explorerElement.Header.Visibility = ElementVisibility.Collapsed; 

 

Aravind
Top achievements
Rank 2
Iron
Iron
Iron
commented on 01 Jun 2023, 01:25 PM

Not working, it still showing title.
Dess | Tech Support Engineer, Principal
Telerik team
commented on 02 Jun 2023, 06:41 AM

Hi, Aravind,

I have attached my sample project for your reference. Please give it a try and see how it works on your end. This is the observed result with the latest version of the Telerik UI for WinForms suite:

Before:

After:

 

Aravind
Top achievements
Rank 2
Iron
Iron
Iron
commented on 02 Jun 2023, 07:58 AM

Thanks, its working. 
Tags
PageView
Asked by
Martin Hamilton
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or