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

How to process the html content of the database

1 Answer 76 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Stanislaw Tristan
Top achievements
Rank 1
Stanislaw Tristan asked on 03 Aug 2008, 05:54 PM
I have a column that stores html content. How to display that content in the rotator?

1 Answer, 1 is accepted

Sort by
0
Shaun Peet
Top achievements
Rank 2
answered on 04 Aug 2008, 06:34 PM
Hello Stanislaw,

You should be able to use the ItemTemplate of the Rotator, similar to this example in the documentation;

http://www.telerik.com/help/aspnet-ajax/rotator-data-binding.html

So, essentially set the Rotator to bind to your database, and in set the template as so:

<telerik:RadRotator ...>
  <ItemTemplate>
    <%# Eval("htmlContentColumn") %>
  </ItemTemplate>
</telerik:RadRotator>

Where "htmlContentColumn" is the name of your column in the database.

What you'll also need to do is set the Height and Width of the RadRotator as well as the ItemHeight and ItemWidth.

Shaun.
Tags
Rotator
Asked by
Stanislaw Tristan
Top achievements
Rank 1
Answers by
Shaun Peet
Top achievements
Rank 2
Share this question
or