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

HTMLTextBox with HTML Content

7 Answers 751 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 13 Apr 2010, 09:26 AM
Hello,

I found that the HTMLTextbox cannot support all HTML markups http://www.telerik.com/help/reporting/report-items-html-text-box.html.

Is there a way wherein I can create a 2 x 2 cell content inside the HTMLTextbox?(just like using a table) I tried using
<Div style='display:inline'>Data1</Div><Div style='display:inline'>Data2</Div><Br /><Div style='display:inline'>Data3</Div><Div style='display:inline'>Data4</Div>

but it seems that the htmltextbox does not support "display:Inline" style. Also when I use span, I cannot control the width which cause misalignment of the data.

Any ideas would be helpful.

Thanks,

7 Answers, 1 is accepted

Sort by
0
Razi Nasir
Top achievements
Rank 1
answered on 14 Apr 2010, 06:39 AM
Try
<Div style='float:left'>Data1</Div><Div style='float:right'>Data2</Div>
<Br />
<Div style='float:left'>Data3</Div><Div style='float:right'>Data4</Div>
....
0
Andy
Top achievements
Rank 1
answered on 14 Apr 2010, 06:41 AM
Thank you Razi for the suggestion,
but that didn't work either, any other ideas?

thanks
0
Peter
Telerik team
answered on 16 Apr 2010, 12:24 PM
Hi Pss Pss,

As you have read the HtmlTextBox support only the following css attributes
  • background-color
  • border-color, border-width, border-style
  • text-align (center, left and right only), text-indent
  • font-family, font-size, font-weight
  • padding, padding-bottom, padding-top, padding-right, padding-left
  • color 
It currently works with the text formatting options only. If you want to achieve a table layout the only possible way is by using the Table item.

Regards,
Peter
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.
0
Sheeraz
Top achievements
Rank 1
answered on 23 Jun 2014, 05:11 PM
Hi Telerik team,

Please guide a way to get format as present in attached file.

Thanks
0
KS
Top achievements
Rank 1
answered on 26 Jun 2014, 10:44 AM
Hi,

You can use a Table or the HtmlTextBox (just format and escape all symbols as for a standard HTML page).


-KS
0
Sheeraz
Top achievements
Rank 1
answered on 30 Jun 2014, 03:14 PM
KS,

Please share some sample that give the same formatting that is required by me in attached sample using HTMLTEXTBOX.

Thanks
0
KS
Top achievements
Rank 1
answered on 01 Jul 2014, 12:11 PM
Hi,

This is the HTML when I enter text in two columns, so this is how the value must look.. test it with the designer and switch to HTML preview in the Edit Expression dialog
<div>text1            text1</div><div>text1            text1</div>
 The empty space is &nbsp; You will see it in the designer.

-KS
Tags
General Discussions
Asked by
Andy
Top achievements
Rank 1
Answers by
Razi Nasir
Top achievements
Rank 1
Andy
Top achievements
Rank 1
Peter
Telerik team
Sheeraz
Top achievements
Rank 1
KS
Top achievements
Rank 1
Share this question
or