Hi all,
I was wondering if anyone had come across this before. I have an ultragrid that truncates each of the cells if the text is too long to read. I'd like to let the user know that the text has been truncated, and remembered that there was some kind of way to use an ellipsis to indicate this in the cell. But, the only thing I could find was documentation on the UltraWebGrid in which there is the following property:
UltraWebGrid1.DisplayLayout.RowStyleDefault.TextOverflow = Infragistics.WebUI.UltraWebGrid.TextOverflow.Ellipsis
Is there anything similar in the UltraGrid? Thanks for you help.
-Rob
Hi Patrik,
TextTrimming determines what happens to the text when there isn't enough room to display it all.
For example, if you have a long string of text that won't fit within the width of a cell, there are a number of ways you could handle this.
You might want to text to simply be clipped in mid-character. Or you might want to clip, but only in between characters, or in between words. Or you might want o show an ellipsis ("...") at the end to indicate to the user that there is more text.
Hi Mike,
would you please explain, what the TextTrimming-Property actually does? When I google "UltraGrid TextTrimming", this thread is the first document found.
Thank you in advance
Patrik
Hi Rob,
You are looking for the TextTrimming property. It's on the Appearance object. So you might use the grid.DisplayLayout.Override.CellAppearance to affect all cells in the grid.