This is a migrated thread and some comments may be shown as answers.

Tiff images and PDF thumbnail view in radrotator

3 Answers 159 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 27 Dec 2013, 09:53 AM
Hi,
     I have created a RadRotator to display images.It displays .jpeg and .gif images but it does not displays .tiff images.Can anyone tell me how to display .tiff images in radrotator . I also want to know how to display the first page of a pdf file in thumbnail view if I use a pdf file in a radrotator. I'm using asp.net(C#). Please help me out.Thanks in advance.


Regards
Rahul

3 Answers, 1 is accepted

Sort by
0
Accepted
Ianko
Telerik team
answered on 30 Dec 2013, 01:21 PM
Hello,

The tiff images are not supported in the browsers and cannot be rendered at all. You can check this by creating a simple <img> tag with a src attribute to a tiff image.

The creation of image thumbnail accordingly to the first page of the PDF file is entirely a custom implementation and it is not related to the RadRotator control. You can use C# implementation to convert the desired page to an image and pass it to the rotator, so that it could be rendered properly. 

Regards,
Ianko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Rahul
Top achievements
Rank 1
answered on 07 Jan 2014, 05:02 AM
Hi,

    Can anyone tell me how to limit the number of images in the radrotator per rotation (like irrespective of the height of the rotator I should be able to display say only 2 images at a time). And is there any events for the up and down arrows of the ScrollDirection.


Regards
Rahul
0
Marin Bratanov
Telerik team
answered on 09 Jan 2014, 11:29 AM
Hi Rahul,

The Rotator's items are placed next to each other and the size of each item in relation to the size of the rotator (which is to say, the viewport towards the items list) controls how many items are visible at ones. This is explained in details here: http://www.telerik.com/help/aspnet-ajax/rotator-configuration.html.
Thus, it is not possible to only have two items with all possible dimensions of the rotator. If you want to show two items you will net to set proper size to the rotator so that it shows two items only.

On events - you can use the OnClientItemShown and OnClientItemShowing events: http://www.telerik.com/help/aspnet-ajax/rotator-client-events.html. You can obtain the item that is (just about to be) shown and from that you can know its contents, its index, etc. Alternatively, you can use the OnClientLoad event to find the buttons and attach a custom event handler for them if you need to. They have the rrButton class (all four of them) and then each has its specific class that defines its direction - rrButtonLeft, rrButtonRight, rrButtonUp, rrButtonDown. Using jQuery will let you easily get references to them.


Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Rotator
Asked by
Rahul
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Rahul
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or