Unable to hide default toolbar

2 posts, 0 answers
  1. Filip
    Filip avatar
    3 posts
    Member since:
    Aug 2012

    Posted 21 Aug 2012 Link to this post


    I use the pdfViewer control, and want to remove/hide the 'open' and/or 'print' button from the toolbar.

    A. Is there a way to do this without having to create a new toolbar ? Currenty wiithout setting any property or xaml I see the default toolbar.
    B. If I have to create a 'new' toolbar ... How do I hide the default toolbar ?

    In my first try , using this link telerik help I see two toolbars :-S

    Thanks in advance.

  2. Todor
    Todor avatar
    168 posts

    Posted 24 Aug 2012 Link to this post

    Hi Filip,

    In the versions before 2012 Q1, RadPdfViewer had a NavigationPanel in its template containing all buttons that triggered the different functionality of the control. In the latest versions the navigation panel is separated from the control in order to provide better customization options. You can read more about that here.

    In the latest versions, you can add and remove buttons from the XAML directly without modifying the template of the control. Please, find the attached project. There you will find the RadPdfViewer with the desired changes of its toolbar.

    Hope this helps.

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top