New to Telerik UI for WPF? Download free 30-day trial

Trimmed Text Tooltips

As of R1 2017 through the new ShowToolTipOnTrimmedText property you can specify whether or not a tooltip should be shown when the text of a given cell exceeds its parent column's width. It can be set on both RadTreeListView and column level.

Setting ShowToolTipOnTrimmedText

The ShowToolTipOnTrimmedText is applied to RadTreeListView's GridViewHeaderCell, GridViewCell and GridViewFooterCell elements. Setting it to True will result in a tooltip being showed if the cell's text is trimmed.

Example 1: Setting RadTreeListView's ShowToolTipOnTrimmedText

<telerik:RadTreeListView ShowToolTipOnTrimmedText="True" /> 

Example 2: Setting a column's ShowToolTipOnTrimmedText

<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" ShowToolTipOnTrimmedText="True" /> 
Setting the ShowToolTipOnTrimmedText of a column will show tooltips for trimmed text only for the given column. Setting the same property of a RadTreeListView instance will set the ShowToolTipOnTrimmedText for all of its columns.

Additionally, when using the ShowToolTipOnTrimmedText property, the following scenarios should be taken into account:

  • If you set the ShowToolTipOnTrimmedText on both column and RadTreeListView level, the value set for the column will take precedence.
  • If you've specified custom cell templates for your columns, no tooltips will be displayed unless you explicitly define them.
  • Tooltips will be displayed in RadTreeListView's footer row only if the content of the footer is either a string or a TextBlock.
  • You should set IsLightweightModeEnabled for your GridViewComboBoxColumns in order to benefit from the tooltip functionality.
  • Tooltips for merged cells are not supported.

See Also

In this article