Posted 4 January 2021, 3:56 am EST
Hi,
At the demo: http://jsfiddle.net/7sbf401y/1/
In case the text is not fully displayed. Then “…” sign is displayed (photo attached)
Please help me
Thanks
Forums Home / Wijmo / General Discussion
Posted by: ntd119 on 4 January 2021, 3:56 am EST
Posted 4 January 2021, 3:56 am EST
Hi,
At the demo: http://jsfiddle.net/7sbf401y/1/
In case the text is not fully displayed. Then “…” sign is displayed (photo attached)
Please help me
Thanks
Posted 4 January 2021, 6:28 am EST - Updated 3 October 2022, 2:55 pm EST
I found a link related to this topic: https://www.grapecity.com/forums/wijmo/word-wrap--ellipsis-in-fle_1
261359 Have information yet? Has the release been supported yet?
file attached
Posted 4 January 2021, 3:34 pm EST
Maybe the below CSS works for your case…
The CSS text-overflow property provides the behaviour you want as long as you are working with a single line of text (i.e. no text wrapping). Example changing your Jsfiddle CSS to forcefully override the wj.cell class:
.wj-flexgrid {
max-height: 400px;
margin-top:10px;
}
.wj-cell {
white-space: nowrap !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
}
The single-line contraint is a CSS contraint: https://developer.mozilla.org/en-US/docs/Web/CSS/text-overflow. For multi-line wrapped text, you will need to do some other magic ![]()
Posted 4 January 2021, 11:34 pm EST - Updated 3 October 2022, 2:55 pm EST
Thank you for the reply
But I want the text must be word wrap multi line and there are three dots (ellipsis), Refer to the attached file
I found a link related to this topic: https://www.grapecity.com/forums/wijmo/word-wrap--ellipsis-in-fle_1
About id 261359, Has the release been supported yet?
Please help me
Thanks
Posted 5 January 2021, 5:19 am EST
Hi,
Sorry, but I was unable to replicate this issue. I tried to replicate the issue with different sizes of the grid and resizing the columns but the ellipsis (…) is not displayed in the sample link. Moreover, if you have set wordWrap to true, then the text-overflow CSS property is set to clip due to which an ellipsis will never be displayed.
But, if your requirement is to display the ellipsis with word-wrap, which was the requirement in 261359, then this will not be possible because HTML does not allow it. Therefore, this enhancement will be added to the FlexGrid. The ellipsis character is only displayed with a single line as said by stephen in the previous reply.
If you have some requirements, then please let us know.
Regards,
Ashwin