HTML not rendred inside RichtextBox

3 posts, 0 answers
  1. Tanuj
    Tanuj avatar
    5 posts
    Member since:
    Sep 2011

    Posted 31 Oct 2011 Link to this post

    (Attached screen shopt of HTML and property which is binded to richtextbox also in the project i have stripped down all "\n" to have vanila HTML)

    Hi we have got 2 applications on single database, and both of them saves HTML in db now in one application we are using RadRichTextBox now when below HTML is assigned to HTMLDataProvider its is not rendred to the UI

    Now do you see anything wwrong in this which might be causing pain to RadRichTextbox


    \n<STYLE type=text/css>\n.p_CC664AAA { margin: 0px 0px 12px 0px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px; } \n.s_1681A555 { font-family: 'Times New Roman';font-style: Normal;font-weight: normal;font-size: 16px;color: #000000; } \n.s_E6FD2046 { font-family: 'Verdana';font-style: Normal;font-weight: normal;font-size: 16px;color: #000000; } \n</STYLE>\n\n<P class=p_CC664AAA><SPAN class=s_1681A555>LOng text</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN cl
    ass=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1
    </SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1</SPAN><SPAN class=s_E6FD2046><BR></SPAN><SPAN class=s_1681A555>1992<BR>2<BR>2<BR>2<BR>2<BR>2<BR>33</SPAN></P>

    And my RadRichTextBox setting are (they are under root grid)
    <telerik1:RadRichTextBox Grid.Row="8" Grid.Column="1" Grid.ColumnSpan="3" TabIndex="2"
                                                     IsContextMenuEnabled="True" IsSelectionMiniToolBarEnabled="True" IsSpellCheckingEnabled="True"
                                                     LayoutMode="Flow"  Margin="0" Name="txtdetails" MinHeight="15" BorderThickness="0"
                                                     VerticalAlignment="Stretch" DocumentInheritsDefaultStyleSettings="False"
                                                     Padding="0" MouseOverBorderThickness="0" />
                            <RadHTMLDataProvider:HtmlDataProvider x:Name="HTMLDataProvider" RichTextBox="{Binding ElementName=txtPublicSummary}" Html="{Binding Details Mode=TwoWay,ValidatesOnDataErrors=True,NotifyOnValidationError=True}"
                                SetupDocument="HTMLDataProvider_SetupDocument"></RadHTMLDataProvider:HtmlDataProvider>
  2. Tanuj
    Tanuj avatar
    5 posts
    Member since:
    Sep 2011

    Posted 04 Nov 2011 Link to this post

    RadRichTextBox is XHtml Compliant
    So we need to convert / keep all Html tags in lower case.

    Figured out it myself,
  3. Tim
    Tim avatar
    25 posts
    Member since:
    Jan 2009

    Posted 18 Nov 2011 Link to this post

    Hi Tanuj,

    Do you have a clean way that you converted all your tags to lower case?  I was going to look at RegEx or possible looking at creating an HtmlDocument but I thought I would ask before I start.

    -Tim
Back to Top