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

CSS 'p' tag on HtmlDataProvider not updating to defaults

3 Answers 48 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Jarred Froman
Top achievements
Rank 1
Jarred Froman asked on 05 Jan 2012, 06:20 PM
I am setting default styles using SetupDocument on the HtmlDataProvider (specifically, font family, font size, and DefaultParagraphSpacingAfter), but it is not setting the CSS style on the p tag of the HTML output and thus not displaying properly when viewed outside of the RadRichTextBox.  The Font Family is defaulting to Verdana, the size to 12, and the bottom-margin to 12px.

Is there a new way of handling this or is this a bug?

Thanks,
Jarred Froman

3 Answers, 1 is accepted

Sort by
0
Ivailo Karamanolev
Telerik team
answered on 06 Jan 2012, 04:21 PM
Hi,

The SetupDocument event is used on import and is executed after the HTML has been imported, to further process the document. Are you trying to perform operations before exporting the document?
Can you please elaborate a bit more on your case and needs so that we can better offer you a solution for the problem?

Kind regards,
Ivailo Karamanolev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Jarred Froman
Top achievements
Rank 1
answered on 06 Jan 2012, 07:31 PM
Thanks for the prompt reply Ivailo!  We are trying to create new documents.  It was working for us in earlier builds.
0
Boby
Telerik team
answered on 11 Jan 2012, 05:17 PM
Hi Jarred Froman,
We are still not sure what is your problem. Could you please send us some sample code and describe the problematic areas, so we can help you further? If you decide to send us sample project, you can also open a support ticket from your account.
Looking forward to your reply.

Kind regards,
Boby
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RichTextBox
Asked by
Jarred Froman
Top achievements
Rank 1
Answers by
Ivailo Karamanolev
Telerik team
Jarred Froman
Top achievements
Rank 1
Boby
Telerik team
Share this question
or