Rotate HTML Files

4 posts, 0 answers
  1. Jon Ingersoll
    Jon Ingersoll avatar
    12 posts
    Member since:
    May 2009

    Posted 18 Feb 2010 Link to this post

    Is there a way to make the rotate cycle over a directory of .htm files and display them? I've tried a few things so far but haven't had any luck.
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 23 Feb 2010 Link to this post

    Hi Jon,

    The RadRotator control has capability to display any HTML content and your scenario is covered by the control. Please note that you need to pass the data to the DataSource property of the control. Also I recommend you to check this online demo, that snows the control in action.

    I hope this helps.

    Kind regards,
    Fiko
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jon Ingersoll
    Jon Ingersoll avatar
    12 posts
    Member since:
    May 2009

    Posted 23 Feb 2010 Link to this post

    Fiko,

    Thanks for your response, but I've already looked in the demos and not seen any example of rotating html files, I'm not trying to pass html content to the rotator, I want it to load up html files and display them in sequence the same way it rotates over a directory of images.

    -Jon
  5. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 25 Feb 2010 Link to this post

    Hi Jon,

    The RadRotator control cannot read or write to the file system. The control uses the standard databinding mechanism and requires a datasource control that will collect the dataitems and pass them to the RadRotator control. As alternative you can use the control's DataSource property and pass a list of items to it. Then you need to call DataBind() method of the control. In your case I recommend you to use the DataSource property of the control. For your convenience I have attached a demo to this thread. Please note that you need to implement the logic that will load the files from the directory and read their contents into the list that is passed as a datasource to RadRotator.

    I hope this helps.

    Sincerely yours,
    Fiko
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top