Tiff images and PDF thumbnail view in radrotator

4 posts, 1 answers
  1. Rahul
    Rahul avatar
    7 posts
    Member since:
    Dec 2013

    Posted 27 Dec 2013 Link to this post

    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
  2. Answer
    Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 30 Dec 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rahul
    Rahul avatar
    7 posts
    Member since:
    Dec 2013

    Posted 06 Jan 2014 Link to this post

    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
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3596 posts

    Posted 09 Jan 2014 Link to this post

    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.
Back to Top