Questions tagged [texttrimming]

78 questions
0
votes
0 answers

TextTrimming in panel in ScrollViewer

I am trying to set up an element within a WPF application, but cannot get the TextTrimming on the TextBlocks to work properly. This is within a ScrollViewer. I am currently using a DockPanel as the inner container. I have searched quite a bit, but…
Rick
  • 397
  • 3
  • 16
0
votes
1 answer

TextTrimming="WordEllipsis" truncates entire string

I have defined a style resource for TexBlock control. Where I am trying to assign it's TextTrimming property as "WordEllipsis". The problem is that the outcome is a blank text instead of some string with some dots. Here is my style…
tavier
  • 1,744
  • 4
  • 24
  • 53
0
votes
0 answers

Text Trimming in the Button

I'm trying to trim text in a button, when it is to long, but it doesn't work. This is my Button:
0
votes
1 answer

TextTrimming on TextBlock while Text bound by DynamicResource

there is a Problem in my TextBlock. I have a Resource in a ResourceDictionary of type String and this is bound to an TextBlock via DynamicResource. On my TextBlock there is TextTrimming active, but on this "Binding" the TextTrimming is not…
JPOne
  • 216
  • 2
  • 8
0
votes
1 answer

TextTrimming using WordEllipss not workong on TextBlock Text

This is my Xaml code. I want the subject to be trimmed. But there is no effect of wordellipsis.
Arpit Gupta
  • 65
  • 1
  • 9
0
votes
2 answers

jquery trimming empty spaces at the end of string

what is the easiest way to trim empty spaces from the end of a string in jquery/javascript? example: "my string " should return "my string" thanks
Fuxi
  • 329
  • 2
  • 6
  • 15
0
votes
1 answer

Hide/Remove first line from total address block in JSP

I was calling a method as given here - to print the total address block. Address add = AddressManager.getMyAddress(someId); String totalAddr = FlexibleAddress.getAddressAsString(add , par1, par2); out.print(totalAddr.toString()); The result of…
Nidheesh
  • 4,390
  • 29
  • 87
  • 150
0
votes
3 answers

php function parameter is not retaining full string passed in

I have a PHP function that in echoing out a string, is losing some of the characters passed in it. Any reason why this would be happening? I pass: $vhkvdov#jqlydk#p*_L#1qrlws|ufqh#KWLZ#1hwdgsX It returns: #jqlydk#p*_L#1qrlws|ufqh#KWLZ#1hwdgsX This…
Tim Kipp
  • 200
  • 1
  • 16
0
votes
1 answer

Enable inheriting for TextBlock.TextTrimming

I have a custom control and I would like to tell every TextBlock inside to use TextBlock.TextTrimming = CharacterEllipsis but I dont want to set that property on each individually. I mean even if later the user defines a ContentTemplate and places…
cyberist
  • 107
  • 1
  • 10
0
votes
1 answer

WPF: TextTrimming in CheckBox with no fixed width

I have a checkbox located in a grid with a column span of 3, where 2 of the columns are resizable, and can be resized during runtime. I want the checkbox to show ellipsis when its text doesn't fit, but can't get this to work. Here is my XAML…
Rachel
  • 1,722
  • 8
  • 29
  • 34
0
votes
2 answers

Select part of a field after the last occurrence o a certain character in MSSQL

I have a field that contains a log of changes. every time adds the date between square brackets. I need to extract the last bit of the filed after the last ] to put it into a table. I was trying this but it doesn't…
0
votes
2 answers

wp_trim_words not working on anything but ordinary strings

I´m a bit out of my field here and I´m confused about this. Using wp_trim_field doesn't work for me except for regular strings. This does not work, it returns the whole text:
Johan Dahl
  • 1,672
  • 3
  • 19
  • 35
0
votes
1 answer

Trim locale result from Facebook Graph API

I am using the Facebook Graph API to get the users locale information (updated code): [more code]
    '; $num_rows = mysql_num_rows($resulttt); $i = 0; while($row = mysql_fetch_array($resulttt)) { …
Maurice
  • 1,147
  • 2
  • 21
  • 49
0
votes
2 answers

ASP.net dropdownlist trims extra spaces while displaying automatically

Following is my code. protected void Button3_Click(object sender, EventArgs e) { var newLsit = new List(); newLsit.Add("1 1"); newLsit.Add("1 1"); newLsit.Add("1 1"); …
Chaitany Ram
  • 141
  • 2
  • 5
  • 16
-1
votes
1 answer

How to best write a "Trim" expression

What I'm trying to do is trim an FQDN down to just the name of the asset. For example, let's say I have a machine called "Desktop1.mycompany.com" and I just want to have the value "Desktop1" in another field. I've done a trim command…
howradisit
  • 43
  • 3
  • 12