Column style (list) with ellipsis

Build 1501 on 14/Nov/2017  This topic last edited on: 6/Sep/2016, at 13:33

This column displays the title, in 300 units width, using "Title" sort, and if the title is longer, the ellipsis is added at the end.

<ColStyle Name="Title" Width="300" Height="0" SortName="Title">

  <CellTemplate>

    <xp:TextBlock 

      TextTrimming="WordEllipsis" 

      Margin="4,0,4,0" 

      VerticalAlignment="Top" 

      HorizontalAlignment="Left"

      Text="{Binding Path=[folderObject.title]}">

    </xp:TextBlock>

  </CellTemplate>

</ColStyle>