Hide title in explorer view

3 posts, 1 answers
  1. Gérald
    Gérald avatar
    8 posts
    Member since:
    Dec 2010

    Posted 29 Aug 2011 Link to this post

    Hello,

    I'm using the RadPageView component with the "explorerBar" ViewMode.
    I'd like to hide the title bar which indicates the active page, but I didn't found any usefull property, nor any UI element in the Visual Style Builder.

    How should I do this ?

    Best regards
    Patrice

  2. Answer
    Ivan Petrov
    Admin
    Ivan Petrov avatar
    692 posts
    Member since:
    Sep 2012

    Posted 01 Sep 2011 Link to this post

    Hello Gérald,

    Thank you for writing.

    You can hide this element using the following code snippet:

    RadPageViewExplorerBarElement explorerElement = this.radPageView1.ViewElement as RadPageViewExplorerBarElement;
    RadPageViewLabelElement labelElement = explorerElement.Children[1] as RadPageViewLabelElement;
    labelElement.Visibility = ElementVisibility.Collapsed;

    You have to do it in the form constructor in order for it to work.

    I hope this will help you. If you have further question, I would be glad to help. Best wishes,
    Ivan Petrov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. Gérald
    Gérald avatar
    8 posts
    Member since:
    Dec 2010

    Posted 01 Sep 2011 Link to this post

    Works great, thanks..

Back to Top