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

Horizontal lists (floated <li>)

1 Answer 80 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tomica
Top achievements
Rank 2
Tomica asked on 17 May 2011, 11:34 PM
I see in the documentation that lists are supported in the HTML text box.

I am wondering if there is a simpler method for creating a horizonal list of floated <li> items from a database query.

In my case, this would be a list of keywords that would consume a great deal of vertical space if listed in that arrangement.

It is my understanding that I COULD add the list formatting in the Item Created event, but it seems to me this would be a common-enough requirement to have a simpler solution.

Collapse imageSupported HTML tags

Various formatting options are available to control the text presentation:

  • Font, size (relative size against the font size of the item, default is 3 (1-7)), color (<FONT>)
  • Bold, Italic, Underline (<STRONG>,<B>, <EM>, <I>, <U>)
  • HyperLink (<A href target>)


1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 20 May 2011, 02:28 PM
Hi Tomica,

There is no out of the box support for horizontal lists in the HtmlTextBox. You can still achieve the desired functionality but by manually creating the contents, so that they mimic horizontal lists. For example:

this.htmlTextBox1.Value = "•list item 1  •list item 2   •list item 3   •list item 4   •list item 5   •list i" +
    "tem 6   •list item 7";

where the bullet item is created by using the following character set: &bull; You can find other varieties in the following link.

Kind regards,
Steve
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
General Discussions
Asked by
Tomica
Top achievements
Rank 2
Answers by
Steve
Telerik team
Share this question
or