Request: Ability to show an ellipsis (...) in a text box when the text overflows the available space

0 Answers 310 Views
Rendering Report Designer (standalone) Styling
Ryan
Top achievements
Rank 1
Iron
Iron
Ryan asked on 21 Oct 2021, 08:12 PM

Maybe this capability is already present, but, I am unable to find it.  When text overflows a text box and the text box is not allowed to grow, I need to be able to show an ellipsis or the remainder of the text that can fit. Currently the report removes all words that can not fit in the given area.

 It would be very helpful if we could set a few overflow options like "ellipsis", "truncate" (default), or "clip". Example


  • Original: "Hello Telerik Reporting"
  • Truncate: "Hello Telerik"
  • Ellipsis: "Hello Telerik Repo..."
  • Clip: "Hello Telerik Repor"

 

 

Neli
Telerik team
commented on 26 Oct 2021, 10:56 AM

Hi Ryan,

You can check the built-in Text functions. If you are missing functionality, you can add a comment to the New functions in the report designers feature request. When it comes to adding Ellipsis, you may use the following function as a workaround:

= Len("Hello Telerik Reporting") > 14 ? Substr("Hello Telerik Reporting", 0 , 14) + " ..." : "Hello Telerik Reporting"

Please, let me know if you have further questions.

Sparky
Top achievements
Rank 1
commented on 14 Mar 2024, 02:20 PM

The length of the text in characters has nothing to do with adding the ellipsis, as long as we are using monospace font. And even then the width of the text is pretty hard to capculate.

There definitely should be an option what happens when the text is too long to be pun into the textbox. Just like there is an option for this in CSS, named "text-overflow".

https://developer.mozilla.org/en-US/docs/Web/CSS/text-overflow

Now, it does not clip the text but removes the whole word when the space is not enough, which is even worse than clipping.

I will put it as capability request.
Dimitar
Telerik team
commented on 19 Mar 2024, 09:35 AM

Hi Spartak,

Please feel free to open up an FR on the feedback portal for this functionality so that it may be reviewed by the development team - Progress® Telerik® Reporting Feedback Portal.

No answers yet. Maybe you can help?

Tags
Rendering Report Designer (standalone) Styling
Asked by
Ryan
Top achievements
Rank 1
Iron
Iron
Share this question
or