Мany of you have asked about a PDF viewer control you could integrate into your projects. The old trick of showing the PDF file in RadWindow directly is still useful for most cases, but today I’m going to show you something even more practical. As you have already guessed by the blog post title, I’m talking about integrating RadWindow with PDF.js.
So what should you do to integrate it in your project? Here is a simple step-by-step guide:
There is a sample project (runnable website) attached to this blog post. Click here for download [UPDATED 12.Feb.2015]. The setup involves three Telerik controls - ListView, Rotator, and Window. The first two are bound to a simple datasource and display thumbnails of the PDF files that will open in the Window control on click.
[12.Feb.2015] I have updated the demo with the following changes:
I know this is a hot topic so I hope the blog post is useful for you. Should you have any questions or suggestions let me know in the comments section below.
Additional resources: PDF.js @ Mozilla Labs RadRotator documentation RadListView documentation RadWindow documentation
Daniel Peichev is Software Developer at one of Telerik's ASP.NET AJAX teams, where
he primarily works on exporting functionality for RadGrid and RadTreeList. Daniel
Subscribe to be the first to get our expert-written articles and tutorials for developers!