Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Agent and App Development Solutions
Build. Accelerate. Govern.
AI-Ready Application Experiences
AI-Assisted SDLC
Agent Governance and Control
Telerik
Build modern .NET business apps
.Net Web
Desktop
Reporting and Documents
Cross-Platform
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
CMS
Debugging
UI Tools
Free Tools
Support and Learning
Docs & Resources
Productivity and Design Tools
Hi,
I want to disable and hide the marked part of the PDFViewer component.
How can i do that?
Thanks,
Ben
Hi Ben,
To remove the marked part from the PDFViewer, you can use the following CSS style:
<style> .k-pdf-viewer-pages .k-icon-xxxl, .k-pdf-viewer-pages .k-upload { display: none; } </style> <TelerikPdfViewer Data="@PdfSource" OnDownload="@OnPdfDownload" Height="600px"> </TelerikPdfViewer> @code { private byte[] PdfSource { get; set; } private async Task OnPdfDownload(PdfViewerDownloadEventArgs args) { args.FileName = "PDF-Viewer-Download"; } protected override void OnInitialized() { PdfSource = Convert.FromBase64String(PdfBase64); base.OnInitialized(); } private const string PdfBase64 = ""; }
Regards, Hristian Stefanov Progress Telerik
Hi John,
Thank you for sharing your additions to the example so other developers can benefit from this.
Kind Regards,
Hristian