Hide pdfviewer thumbnail Border

7 posts, 1 answers
  1. Manuel
    Manuel avatar
    5 posts
    Member since:
    Jul 2013

    Posted 03 Jul 2015 Link to this post

    Hello :)

    is it possible to hide this border (see picture)?

     

    Thank you in Advance

  2. Ralitsa
    Admin
    Ralitsa avatar
    176 posts

    Posted 06 Jul 2015 Link to this post

    Hi Manuel,

    Thank you for contacting us. 

    If I understand correctly you want to hide the size grip between the thumbnails and  the pdf viewer. You can refer to the following code: 
    PdfSizeGripElement element = this.radPdfViewer1.ContainerElement.Children[1] as PdfSizeGripElement;
    element.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;

    In the attachments you can find an image which demonstrates the hidden size grip. 

    If you want to hide the thumbnail panel, you can set the EnableThumbnail property to false
    this.radPdfViewer1.EnableThumbnails = false;

    Hope this will help you. Let me know if you have any other questions.

    Regards,
    Ralitsa
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Manuel
    Manuel avatar
    5 posts
    Member since:
    Jul 2013

    Posted 06 Jul 2015 in reply to Ralitsa Link to this post

    Thank you very much, but no i meant the hole panel, sorry i wrote border instead of panel.

    Is it possible to hide this panel?
  5. Answer
    Ralitsa
    Admin
    Ralitsa avatar
    176 posts

    Posted 06 Jul 2015 Link to this post

    Hi Manuel,

    Thank you for your reply. 

    If you want to hide the thumbnails, you need to set the EnableThumbnail property to false:
    this.radPdfViewer1.EnableThumbnails = false;

    Should you have further questions, I would be glad to help.

    Regards,
    Ralitsa
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Manuel
    Manuel avatar
    5 posts
    Member since:
    Jul 2013

    Posted 06 Jul 2015 in reply to Ralitsa Link to this post

    Perfect ;)
    Thank you very much ;)
  7. Emdadul
    Emdadul avatar
    1 posts
    Member since:
    Sep 2016

    Posted 27 Sep in reply to Ralitsa Link to this post

    Hi Ralitsa,
    Can I hide entire left side panel. So only the PDF file will visible. I don't want any left side bar. I am using PdfViewer version 2014.*
  8. Dess
    Admin
    Dess avatar
    1607 posts

    Posted 27 Sep Link to this post

    Hello Emdadul,

    Thank you for writing.  

    You can find below a sample code snippet demonstrating how to hide the thumbnails for versions that don't have the EnableThumbnail property yet:
    public Form1()
    {
        InitializeComponent();
     
        radPdfViewer1.ShowThubnails();
        radPdfViewer1.ThumbnailListWidth = 0;
    }

    I hope this information helps. Should you have further questions I would be glad to help.

    Regards,
    Dess
    Telerik by Progress
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Back to Top
UI for WinForms is Visual Studio 2017 Ready