Rotator vs. Slideshow/Slider?

5 posts, 0 answers
  1. Matt Low
    Matt Low avatar
    11 posts
    Member since:
    Jun 2008

    Posted 27 Dec 2010 Link to this post

    Hello - I have a scenario where a random number of .jpg files get placed in a folder and my web page's responsibility is to simply display, in slide-show format, those images. Having not used either the RadRotator or RadSlider controls, I'm a bit confused about which direction to take. The demo's I've seen for the Slider control seem to be geared around those scenarios where the number of images to be displayed is fixed, whereas the Rotator is better suited for a situation like mine, where the images can be changed frequently.

    Ideally, I'd like to be able to simply "point" the control at the directory that contains the images and it would automatically display everything in that path as a slideshow. I'm able to accomplish this with the Ajax Control toolkit. Is this possible with either the RadSlider or RadRotator? Thanks.

    Matt
  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 28 Dec 2010 Link to this post

    Hello Matt Low,
    In case I understand your requirement correctly, you are leaning towards the correct choice. RadRotator for ASP.NET AJAX is built to handle such case out of the box. Regarding the other control that you have in mind - RadSlider for ASP.NET AJAX, its purpose is different and even though you can customize it in such a way as to use it in this scenario, it will take a greater amount of effort and time than a solution with the rotator. In short, you are correct - the rotator control is better suited for the scenario you describe.

    In case you need additional information on the controls, please refer to the following resources:

    Regards,
    Tsvetie
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Matt Low
    Matt Low avatar
    11 posts
    Member since:
    Jun 2008

    Posted 28 Dec 2010 Link to this post

    Thanks for your response, Tsvetie. Along with my varying number of .jpg files that I want to display as a slideshow, I would also like the ability for the user to be able to move back or forward between images quickly.

    The Kawasaki Demo (http://demos.telerik.com/aspnet-ajax/slider/examples/slideshow/defaultcs.aspx) is pretty much exactly what I'm trying to accomplish. This demo, however, uses pre-definted DIV tags to define each image to be displayed then the RadSlider has a corresponding, hard-coded RadSliderItem defined for each. I need a way to dynamically loop through my images and create my SliderItems accordingly. Is there any code examples you can send me or point me to that does this? Thanks.

    Matt
  5. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 30 Dec 2010 Link to this post

    Hi Matt,
    I was thinking that you are considering the RadSlider control because of the Kawasaki demo. This demo, however, demonstrates how you can use the client-side events of the slider as a means to change something on the page. It does not demonstrate how you can use the slider as a slide show control, but rather as a pager control for a slide show control. I believe the following demos will be of interest to you as well:

    I would suggest that you use the rotator control as a slide show control and in case you need the slider as a pager, integrate the two controls.

    In case you are not sure how to create the items of the slider dynamically, you can refer to the following demo for code samples and information: http://demos.telerik.com/aspnet-ajax/slider/examples/serversideapi/defaultcs.aspx. You can use the ItemDataBound server-side event of the rotator to create the items of the slider control.

    In case you have problems using our controls, please open a formal support ticket and send us a working test project that demonstrates the problems you have as well as detailed information on the problems themselves.

    Kind regards,
    Tsvetie
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  6. Matt Low
    Matt Low avatar
    11 posts
    Member since:
    Jun 2008

    Posted 30 Dec 2010 Link to this post

    Hi Tsvetie - Thank you for your thorough and detailed response. I did end up using a rotator as the primary slideshow control in conjunction with the slider, as a means to advance/reverse the images being displayed. I found the RotatorSliderDemo posted at: http://www.telerik.com/community/forums/aspnet-ajax/rotator/radslider-with-radrotator-for-tracking-rotator-changes.aspx to be extremely helpful.

    Matt
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017