HTMLTextBox with HTML Content

8 posts, 0 answers
  1. U4
    U4 avatar
    13 posts
    Member since:
    Oct 2012

    Posted 13 Apr 2010 Link to this post

    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,
  2. Razi Nasir
    Razi Nasir avatar
    1 posts
    Member since:
    Feb 2009

    Posted 14 Apr 2010 Link to this post

    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>
    ....
  3. DevCraft banner
  4. U4
    U4 avatar
    13 posts
    Member since:
    Oct 2012

    Posted 14 Apr 2010 Link to this post

    Thank you Razi for the suggestion,
    but that didn't work either, any other ideas?

    thanks
  5. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 16 Apr 2010 Link to this post

    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.
  6. Sheeraz
    Sheeraz avatar
    27 posts
    Member since:
    Nov 2012

    Posted 23 Jun 2014 in reply to Peter Link to this post

    Hi Telerik team,

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

    Thanks
  7. KS
    KS avatar
    165 posts
    Member since:
    Oct 2012

    Posted 26 Jun 2014 in reply to Sheeraz Link to this post

    Hi,

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


    -KS
  8. Sheeraz
    Sheeraz avatar
    27 posts
    Member since:
    Nov 2012

    Posted 30 Jun 2014 Link to this post

    KS,

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

    Thanks
  9. KS
    KS avatar
    165 posts
    Member since:
    Oct 2012

    Posted 01 Jul 2014 in reply to Sheeraz Link to this post

    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
Back to Top
DevCraft banner