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

DisableHtmlRendering on a RadPageViewPage text

2 Answers 106 Views
PageView
This is a migrated thread and some comments may be shown as answers.
OD
Top achievements
Rank 1
OD asked on 28 Oct 2015, 10:57 AM

hi, 

Is there a way to use html on the text on a RadPageViewPage (explorerBar mode).

I want the first part of the text in black,the end in red.

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 28 Oct 2015, 04:05 PM
Hello QuizzBox,

Thank you for writing.

Yes, you can use Html-like text formatting in RadPageView. Please check my example below how you can modify the Title and Text properties:
this.radPageViewPage1.Title = "<html><size=12>This is Title <br><b><font=Arial>Arial, Bold</b><br><i><color= Red><font=Times New Roman>Times, Italic <u>Underline</u><br><size=9>Size = 9<br><color= 0, 0, 255>Sample Text";
this.radPageViewPage1.Text = "<html><size=8>This is Text <br><b><font=Arial>Arial, Bold</b><br><i><color= Red><font=Times New Roman>Times, Italic <u>Underline</u><br><size=9>Size = 5<br><color= 0, 0, 255>Sample Text";

Additional information is available in this section of our documentation: TPF | HTML-like Text Formatting. I am also attaching a screenshot showing the result on my end.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
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
0
OD
Top achievements
Rank 1
answered on 28 Oct 2015, 04:29 PM

ok, thanks, works :)

Control is created dynamically and I put the DisableHtmlRendering to True ;)

Tags
PageView
Asked by
OD
Top achievements
Rank 1
Answers by
Hristo
Telerik team
OD
Top achievements
Rank 1
Share this question
or