Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

OBSOLETE - ASPxTreeList - How to display a truncated text in a column

$
0
0

UPDATED:

Starting with version v2015 vol 2 (v15.2), this functionality is available out of the box. Simply set the ASPxTreeList.SettingsBehavior.AllowEllipsisInText / TreeListDataColumn.AllowEllipsisInText property to True to activate it. Please refer to the ASP.NET Grid View - Data Range Filter, Adaptivity and More (Coming soon in v15.2) blog post and the Resizing Columns demo for more information.
If you have version v15.2+ available, consider using the built-in functionality instead of the approach detailed below.

This example demonstrates how to display a truncated text in the ASPxTreeList column and show a full value as a tooltip.
1) Handle the ASPxTreeList.HtmlDataCellPrepared event and truncate the displayed text in DataCell via the e.Cell.Text property;
2) Set a tooltip for the same DataCell via the e.Cell.ToolTip property.

See Also: 
E3934: ASPxGridView - How to display a truncated text in a column


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>