This is a migrated thread and some comments may be shown as answers.

Unable to hide default toolbar

1 Answer 101 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
Filip
Top achievements
Rank 1
Filip asked on 21 Aug 2012, 01:42 PM
Hello,

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.

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 24 Aug 2012, 07:32 AM
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,
Todor
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
PDFViewer
Asked by
Filip
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or