Let's say I have a RadButton of width 200 px. I want the button text to be automatically shortened with an ellipsis (...) at the end if the text is too long to fit in the button width.
How do I do that?
3 Answers, 1 is accepted
0
Stefan
Telerik team
answered on 13 Oct 2014, 06:40 AM
Hello Mark,
Thank you for writing.
This can be achieved by setting the AutoEllipsis property of the text element to true (which is also a default setting):
I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.
Regards,
Stefan
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
I have a RadButton with the image set and this property set:
TextImageRelation = ImageBeforeText
If TextImageRelation is left to the default value of Overlay, the ellipsis works, but the text overlays the image. If I change the value to ImageBeforeText, the button text is not ellipsed. I want the text to the right of the image AND show the ellipsed button text.
I have tested placing the image both before and after the text and the text is AutoEllipsed correctly. Please refer to the attached sample and let me know what I am missing.
I am looking forward to your reply.
Regards,
Stefan
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.