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

Some trouble about RadRichTextBox

1 Answer 37 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Jingmeng
Top achievements
Rank 1
Jingmeng asked on 02 May 2011, 04:17 AM
Hey all, 
i have some problem about populate html in richtextbox, here is html
<html>
<head>
<style>
p.MsoNormal, li.MsoNormal, div.MsoNormal {
    margin: 0cm;
    margin-bottom: .0001pt;
    font-size: 10.0pt;
    font-family: "Tahoma", Courier, monospace;
}
div.DivStyle {
    border-bottom: thin gray solid;
    margin-top: 10pt;
    padding-bottom: 10pt;
}
</style>
</head>
 
<body>
<div class="DivStyle">
    <div>
        <p class="MsoNormal"><b>Date</b>: 2011-04-28<br />
        <b>Status</b>: Valid<br />
        <b>Activity Type</b>: Case Note<br />
        <b>Subject</b>: test<br />
        </p>
    </div>
    <div>
        <p class="MsoNormal" style="font-size: 12.0pt;">asdfasdfsafsafdasfsfas</p>
    </div>
</div>
<div class="DivStyle">
    <div>
        <p class="MsoNormal"><b>Date</b>: 2011-03-16T02:30:00<br />
        <b>Status</b>: Attended<br />
        <b>Activity Type</b>: Client Meeting<br />
        <b>Subject</b>: Meeting with Joseph and Tane on 16 Mar 2011 02:30<br />
        </p>
    </div>
    <div>
        <p class="MsoNormal" style="font-size: 12.0pt;">asdfasdfsafsafdasfsfas</p>
    </div>
</div>
</body>
</html>

problem is when i show this html in RadRichTextBox, the underline of each Div didn't show up. 

anyone have idea why is that?

cheers,

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 04 May 2011, 09:01 AM
Hello Jingmeng,

These div borders should most probably be interpreted as Paragraph borders, which is a feature we do not support yet. When paragraph borders in the document are supported, the document will come to look more like the way a browser renders the HTML.
Similar look can be achieved by placing the paragraphs in a table with one column and two rows, which has transparent borders (or borders of width 0), in case this is an option for your application.

Kind regards,
Iva
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
RichTextBox
Asked by
Jingmeng
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or