Questions tagged [texttrimming]

78 questions
0
votes
2 answers

Truncating Text To Full Words Based On Character Limit - Excel

I'm working with some data (DataSet#1) which has a text field truncated using some unconventional logic: If "Service Type Description" is > 60 Characters, Trim the name down to < 60 characters, but only full words My problem is that I need to…
tseel
  • 35
  • 5
0
votes
4 answers

Why TrimEnd() function of C# behaves like following?

A simple code snippet is as follows: public static void Main() { string str = "IsRecorded0"; str = str.TrimEnd("0".ToCharArray()); Console.WriteLine(str); } The output string that I get is IsRecor. Why does the…
Navjot Singh
  • 678
  • 7
  • 18
0
votes
3 answers

Unexpected behavior with Oracle ltrim

select ltrim('PREPROCESSINGLIST_AOD', 'PREPROCESSINGLIST_') as node_code from dual; The expected result is AOD, but when I run by changing the first string then getting unexpected behavior. Below are the trails I tried and run by changing the…
0
votes
0 answers

WPF: Auto truncating text in RadRichTextBox

I am using Telerik's RadRichTextBox control in WPF application, in which I wanted to do TextTrimming for the long sentence/string/text. Like for below screen shot- But I found there is no support for "TextTrimming" for RadRichTextBox control by…
user3848036
  • 169
  • 2
  • 6
  • 17
0
votes
1 answer

Is it possible to Trim Wrapped Text at the bottom of the container in WPF?

I would like to trim the contents of a TextBlock at the bottom of the container when it runs out of space. The image below shows what I am trying to achieve. The left cell contains text that is being wrapped at the end of the line, but is being…
Darren
  • 4,408
  • 4
  • 39
  • 57
0
votes
1 answer

SL4 - TextTrimming in DataGridRowGroupHeader

I'm customizing the DataGridRowGroupHeader in our project. Everything works fine except that I can't get the text to trim. Here's the style:
dex3703
  • 2,077
  • 4
  • 28
  • 45
0
votes
1 answer

Jquery check input trim

How can i create a custom function in jquery? I want to use that on text inputs, to check with trim, that the user really entered some text, or just white spaces.
Takács Zoltán
  • 117
  • 3
  • 13
0
votes
1 answer

TextTrimming property of TextBlock placed in TreeViewItem using GridSplitter

My XAML is very simple:
StepUp
  • 36,391
  • 15
  • 88
  • 148
0
votes
0 answers

Auto ToolTip on TextBlock trimming

I have tried everything, solution1: https://siderite.dev/blog/determining-if-textblock-has-been.html solution2: http://blog.scottlogic.com/2011/01/31/automatically-showing-tooltips-on-a-trimmed-textblock-silverlight-wpf.html My solution:…
0
votes
0 answers

GDI+ Graphics.DrawString with TextTrimming set to EllipsisCharacter doesn't work if output rectangle contains one character

We use the classic GDI+ DrawString method to output text and set the Trimming property of its format parameter to EllipsisCharacter (see also the StringTrimming enumeration). If the output rectangle is enough small so it can display just one…
TecMan
  • 2,743
  • 2
  • 30
  • 64
0
votes
0 answers

TextTrimming TextBlock with other controls next to it

I'm trying to make a really simple title panel, which contains an Image-icon and TextBlock-title in the center of the panel: To achieve this with TextBlock, I could use StackPanel with Vertical-orientation. But this doesn't work when I need to add…
W0lfw00ds
  • 2,018
  • 14
  • 23
0
votes
2 answers

How to trim a value in php?

I'm trying to take a value from some variable which looks like this: $ a= '[custom:data-rekrutacji]'; using [custom:data-rekrutacji] token which I've already defined which should contain the value: 2015-08-11 13:00:00, but if I check it using…
Anna K
  • 1,666
  • 4
  • 23
  • 47
0
votes
0 answers

TextTrimming fails with Custom fonts

Text trimming is not working for custom font. Any clues on how to fix that?
alfah
  • 2,077
  • 1
  • 31
  • 55
0
votes
3 answers

Trim text (with CSS?) in highscores template

I'm building a highscores page template, And would like to trim the username (ideally with CSS) if the username and/or score is too long. See this picture : I can use white-space: nowrap; overflow: hidden; text-overflow:…
gordie
  • 1,637
  • 3
  • 21
  • 41
0
votes
2 answers

Trim a variable's value until it reaches to a certain character

so my idea is like this.. var songList = ["1. somesong.mid","13. abcdef.mid","153. acde.mid"]; var newString = myString.substr(4); // i want this to dynamically trim the numbers till it has reached the . // but i wanted the 1. 13. 153. and so on…
Adarsh Hegde
  • 623
  • 2
  • 7
  • 19