Bold, Underline Text, in textbox

39 posts, 0 answers
  1. Steve
    Steve avatar
    10941 posts

    Posted 14 Jan 2009 Link to this post

    Hello rh,

    There would be no linespacing at least for the first draft of the rich textbox which would have a pretty basic html handling. However we would consider adding it for one of the subsequent versions depending on how things come along of course :)

    Best wishes,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  2. Wayne Brantley
    Wayne Brantley avatar
    5 posts
    Member since:
    Feb 2004

    Posted 13 Feb 2009 Link to this post

    Warning, I believe current feature implementation has COMPLETELY MISSED THE MARK!!

    I thought this entire thread was about the addition of a RICHTEXTBOX?
    That _should_ mean a text box that you can put RTF (rich text format) text into.   Such as text from Word and every other such program.

    This way, I can have some custom formatted and controlled by end user text on the report - they can make it in wordpad or anything.  To implement this, you just need to render the rich text out onto the report.

    I know Developers Express has this feature, cannot say about the others.

    Instead you have built a very limited HTML viewer.   I am sure that will be useful in some scenarios, but due to it's limiations not sure what those are....after all, if I have to make the HTML, I might as well make the report.

    Cannot believe I have waited 9 months on 'Rich Text Support' to be given 'Limited HTML rendering'......
  3. Svetoslav
    Svetoslav avatar
    649 posts

    Posted 16 Feb 2009 Link to this post

    Hi guys,

    We have been discussing the text formatting features of Telerik Reporting for a while now. We have used different names and terms that might sound misleading or inconsistent. In order to eliminate any further misunderstanding let me elaborate a bit more on what exactly we are working on.

    Currently, in order to display a text content one should use the TextBox report item. It renders plain text formatted according to the item's Style. This means that the entire TextBox content is rendered in one color, with the same font and size. Although this functionality covers the basic reporting needs we need, it does have some limitations that make the process of designing reports cumbersome. So, we decided to move one step further and style not only the entire item, but different parts of the content.

    The new report item we are developing will allow formatting of different parts of the contained text with different styles. This includes the basic formatting: background and fore color, text align, font name, size and style, plus organizing the text in paragraphs and lists. In order to keep the formatting information with the text (that is - "rich text") we need to use some kind of meta language. There are several document markup languages that are suitable for this task. To name some of them: HTML, XHTML, RTF, TeX, LaTeX, etc. Of course we have the freedom to use our own internal representation/format. Although they all use different syntax, the output that the end user sees is usually the same.

    After examining the different possibilities, the capabilities of the supported output formats, and the feedback from our customers (Thank you!) we decided to stick to HTML (to be more specific, we will support a subset of the HTML elements that are suitable for formatting the text). Not to mention that Telerik is well known on the market by its award winning WYSIWYG HTML editor - RadEditor.

    The new item, called HtmlTextBox, can render XHTML content, and will support the following HTML elements: STRONG, B, EM, I, U, DIV, SPAN, P, FONT, CENTER, UL, OL, LI, BR; it will also support these CSS styles: background color, font (family, size, weight, style), border (color/style/width), text align and color. We decided to start with a limited set of HTML/CSS elements; if things go well we will extend the HTML capabilities of the HtmlTextBox.

    Our primary goal was to enable rich formatting of the report content - not to develop a HTML rendering engine/viewer/browser. The HTML/CSS subset we will support is just for this case. Moreover Telerik Reporting supports a number of different export formats. Some of them have limited rendering capabilities (for ex. MS Excel) that could hardly be passed by.

    The new HtmlTextBox report item has one more feature - it supports merging fields - a functionality similar to the MS Word's mail merge, but extended with the Telerik Reporting's built-in expressions.

    The new rich text features will be available no later than the 2009.1 release scheduled for March 10. Then all of you will have the chance to play with them and give your feedback. It is our believe that the HtmlTextBox will be powerful enough for your richtext formatting needs.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  4. Doug Odegaard
    Doug Odegaard avatar
    51 posts
    Member since:
    Oct 2004

    Posted 16 Feb 2009 Link to this post

    Thanks to the team for this addition.  I'm excited to see its functionality and assure it can surpass what Crystal can do for us.
  5. rh
    rh avatar
    193 posts
    Member since:
    Jan 2007

    Posted 16 Feb 2009 Link to this post

    From a testing standpoint I would recommend the following. Create content in your own editor that utilizes all of the supported elements mentioned in your post. For instance, change the font color in your editor and then show the generated HTML from your editor in the new report control to make sure it shows. I personally plan on letting people customize sections of their reports and plan to use your editor as the tool to let them customize that text. So my expecation would be that the two support each other.

    On that note it would be great if you offered a built in toolbar mode for the editor that supported only the features supported by the report control because I'll need to limit what the user can do in their customization to what will be supported by the report control. Sure, I can create the tools file myself, but I would suspect that other folks would want this as well so it may make sense to include it in the product.

    Finally, please make sure the documentation clearly states what tags and CSS attributes are supported.

    Thanks for including this as a step 1. I'm hopeful that you will support full HTML/CSS capabilities in the future.
  6. Ricardo Pinto
    Ricardo Pinto avatar
    36 posts
    Member since:
    Sep 2008

    Posted 30 Mar 2009 Link to this post


    I totally agree with rh: the RadEditor should definitely have a default toolbar mode displaying only the options supported by the HtmlTextBox report item.

    As rh said, we can create our custom toolbar, and that's what I did for now:

      <telerik:EditorTool Name="Cut" /> 
      <telerik:EditorTool Name="Copy" /> 
      <telerik:EditorTool Name="Paste" /> 
      <telerik:EditorTool Name="Undo" /> 
      <telerik:EditorTool Name="Redo" /> 
      <telerik:EditorTool Name="FontName" /> 
      <telerik:EditorTool Name="FontSize" />                                 
      <telerik:EditorTool Name="Bold" /> 
      <telerik:EditorTool Name="Italic" /> 
      <telerik:EditorTool Name="Underline" /> 
      <telerik:EditorTool Name="ForeColor" /> 
      <telerik:EditorTool Name="BackColor" /> 
      <telerik:EditorTool Name="JustifyLeft" /> 
      <telerik:EditorTool Name="JustifyCenter" /> 
      <telerik:EditorTool Name="JustifyRight" /> 
      <telerik:EditorTool Name="InsertUnorderedList" /> 
      <telerik:EditorTool Name="InsertOrderedList" /> 
      <telerik:EditorTool Name="InsertParagraph" /> 

    But if you continue to add support for new html/css tags we'll have to update our radEditor(s) everytime.
    So I give my +1 to this suggestion :)

    Keep up the great work!
    Best regards,

  7. Ladislav
    Ladislav avatar
    2 posts
    Member since:
    Mar 2015

    Posted 18 Mar 2015 Link to this post

    I am in such a need for rich TextBox now... I am not sure how to solve it... It is useless to create big description text boxes with no rich text features. Nobody will read it.
    That feature would also allow creation of more nice GUIs. 
    Please implement that.
  8. Nasko
    Nasko avatar
    920 posts

    Posted 21 Mar 2015 Link to this post

    Hello Ladislav,

    You can use the HtmlTextBox report item to add rich text features to the report's text boxes.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  9. Ladislav
    Ladislav avatar
    2 posts
    Member since:
    Mar 2015

    Posted 23 Mar 2015 in reply to Nasko Link to this post

    Thanks, that helps.
Back to Top