How to add a PDF file to a RadRotator control

1 Answer 49 Views
UI for ASP.NET AJAX in ASP.NET MVC
James
Top achievements
Rank 1
James asked on 13 Sep 2023, 06:52 PM | edited on 13 Sep 2023, 07:02 PM

To add a PDF file to a RadRotator control, the forum has a link to some code in Rich Content which has this:

                        <div class="image">
                            <img src='images/pic<%# XPath("Number") %>.gif' height="75" width="69" alt="" title=""
                                style="border: 0px" />
                        </div>
                        <div class="flashMovie">
                            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0"
                                width="165" height="74">
                                <param name="movie" value='images/Movie<%# XPath("Number") %>.swf' />
                                <param name="quality" value="high" />
                                <param name="bgcolor" value="#FFFFFF" />
                                <param name="wmode" value="transparent" />
                                <object type="application/x-shockwave-flash" data='images/Movie<%# XPath("Number") %>.swf'
                                    width="165" height="74">
                                    <param name="wmode" value="transparent" />
                                </object>
                            </object>
                        </div>
                        <div class="orderDetails">
                            order:
                            <asp:DropDownList runat="server">
                                <asp:ListItem Value="Vase">Vase</asp:ListItem>
                                <asp:ListItem Value="Card">Card</asp:ListItem>
                                <asp:ListItem Value="Box">Box</asp:ListItem>
                            </asp:DropDownList>
                            <br />
                            price: <b>$<%# XPath("Content")%></b>
                            <br />
                            <a href="#" class="orderInfo">details&nbsp;&raquo;</a>
                        </div>
                    

The Telerik answer about adding a PDF file says use the PDF's iFrame to add to the RadRotator, but iFrames are deprecated, and there is no iFrame in this code.  Can anyone provide a modern solution that specifically shows how to add an existing PDF file to a RadRotator?

 

 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 14 Sep 2023, 07:43 AM

Hi James,

The demo showcases the use of an ItemTemplate of RadRotator. You can replace the obsolete flash player with the RadPdfViewer control, or another library like the pdf.js one where you can load and present a pdf file.

Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
James
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or