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

Rotate HTML Files

3 Answers 52 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Jon Ingersoll
Top achievements
Rank 1
Jon Ingersoll asked on 18 Feb 2010, 04:43 PM
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.

3 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 23 Feb 2010, 03:19 PM
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.
0
Jon Ingersoll
Top achievements
Rank 1
answered on 23 Feb 2010, 03:33 PM
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
0
Fiko
Telerik team
answered on 25 Feb 2010, 11:26 AM
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.
Tags
Rotator
Asked by
Jon Ingersoll
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Jon Ingersoll
Top achievements
Rank 1
Share this question
or