PDF Navigator and readonly viewer

3 posts, 1 answers
  1. Marco
    Marco avatar
    87 posts
    Member since:
    Apr 2011

    Posted 05 Jul 2013 Link to this post

    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. Answer
    George
    Admin
    George avatar
    500 posts

    Posted 05 Jul 2013 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Marco
    Marco avatar
    87 posts
    Member since:
    Apr 2011

    Posted 05 Jul 2013 Link to this post

    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.
Back to Top