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

Endtag in Htmltextbox

1 Answer 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Fredrik
Top achievements
Rank 1
Fredrik asked on 16 Jun 2010, 09:22 AM

I have a richtextbox in Silverlight and I save the content as xaml in the database.

When I use it,  I convert the filed to html and use it in Telerik reporting as a htmltextbox.

The problem is when using WriteEndElement it create the endtag as />, If there is no content.

When I binding the htmlfield to htmltextbox,  it ignore the endtags and it creates the endtags last in the text.

Below, see the content of the htmltextbox. It ignore the red text, entags,  and I missed the text “Head”.

Is this a fault?

 

<div><p STYLE="font-size:12;font-family:Verdana;color:#000000;font-weight:normal;font-style:normal;text-align:Left;"><span STYLE="font-size:14;font-weight:bold;">Head</span></p><p STYLE="font-size:12;font-family:Verdana;color:#000000;font-weight:normal;font-style:normal;text-align:Left;"><span STYLE="font-weight:bold;" /></p><p STYLE="font-size:12;font-family:Verdana;color:#000000;font-weight:normal;font-style:normal;text-align:Left;"><span STYLE="font-weight:normal;">Hello.</span></p><p STYLE="font-size:12;font-family:Verdana;color:#000000;font-weight:normal;font-style:normal;text-align:Left;"><span STYLE="font-weight:normal;" /></p><p STYLE="font-size:12;font-family:Verdana;color:#000000;font-weight:normal;font-style:normal;text-align:Left;"><span STYLE="font-weight:normal;">Hello two.</span></p></div>

 

I also have another question. Will it come a RichTextBox in Telerik reporting?

 

/Fredrik

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 17 Jun 2010, 02:13 PM
Hi Fredrik,

We were able to reproduce the problem on our end and verified that it is a problem with the HtmlTextbox engine. We've logged the issue in our bug tracking system and would address it for subsequent version of the product.
For the time being, you have two options:
  • avoid creation of empty block elements.
  • manually handle the output of the richtextbox before feeding it to the HtmlTextBox, so that such cases are converted from <span /> to <span></span>

As for your second question, currently we do not have any plans for this. You can read more on why we have chosen to go with the HtmlTextBox in the following forum thread.

Please excuse us for the temporary inconvenience. Your Telerik points have been updated for bringing this to our attention.

All the best,
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
Fredrik
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or