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

Changing values of ordered list items in HtmlTextBox

1 Answer 257 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aaron Abdis
Top achievements
Rank 1
Aaron Abdis asked on 06 Dec 2018, 09:58 PM

In the report designer, I have an HtmlTextBox

In the textbox, I have an ordered list.

I need to change the numbering of the list to start at a value other than 1.
Looking on line, this can be done either by setting the "start" attribute on the OL tag, or the "value" attribute on the LI tag.

    <ol start="10">

    <li value="10">

I've tried both of those, but it doesn't work. It shows my new starting number in the HTML Value designer, but when I click OK and go back to the report designer, it still starts at 1.

1 Answer, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 11 Dec 2018, 07:50 AM
Hi Aaron,

The start and value attributes of the ordered list element are not supported out-of-the-box. The list can only be rendered with bullets (unordered) or with numbers (orders).

There similar feature requests in our feedback portal:
Feel free to give your vote for them or add the comment. New features are selected for development based on the interest from the community members.

I could suggest to try the workaround provided in the How to render any HTML tags and CSS attributes in reports KB article. An example is also available in the article.
Briefly, you may use a WebBrowser control to render the HTML content to an image in a User Function, and display the generated image in a PictureBox item.

Regards,
Silviya
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Aaron Abdis
Top achievements
Rank 1
Answers by
Silviya
Telerik team
Share this question
or