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

PDF Navigator and readonly viewer

2 Answers 281 Views
PdfViewer and PdfViewerNavigator
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 2
Veteran
Marco asked on 05 Jul 2013, 08:04 AM
Hello

I use the RadPdfViewer and Navigator for the display of some document in my application. As the document should be readonly (the file shouldn't be change), I was wondering if there is a way of removing the open button in the Navigator ?

Thank you for your precious advice.

2 Answers, 1 is accepted

Sort by
0
Accepted
George
Telerik team
answered on 05 Jul 2013, 12:31 PM
Hello Marco,

Thank you for contacting us.

You can remove the open button really easy with the following line of code
this.radPdfViewerNavigator1.CommandBarElement.Rows[0].Strips[0].ItemsLayout.Children[0].Visibility = Telerik.WinControls.ElementVisibility.Collapsed;

I hope this helps.
 
Regards,
George
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Marco
Top achievements
Rank 2
Veteran
answered on 05 Jul 2013, 02:29 PM
Hello George,

Thank you very much for your answer.

It works nice (I still see the button in the add/remove button menu of the Navigator, but as it doesn't make the button appears again, it's ok for me). 

Have a nice week-end.
Tags
PdfViewer and PdfViewerNavigator
Asked by
Marco
Top achievements
Rank 2
Veteran
Answers by
George
Telerik team
Marco
Top achievements
Rank 2
Veteran
Share this question
or