Cell data terminated with "..."

2 posts, 0 answers
  1. JC
    JC avatar
    1 posts
    Member since:
    Mar 2012

    Posted 05 Apr 2012 Link to this post

    How do I show the cell content terminated with "..." if its length is longer than the cell width. Tool tip to show all the content.

    Is that possible? Pls help.
  2. Vlad
    Vlad avatar
    11100 posts

    Posted 05 Apr 2012 Link to this post


     The easiest way yo achieve your goal is to define a custom CellTemplate for desired column and set both requirements on a TextBlock. Here is an example:

    <telerik:GridViewDataColumn Width="100" DataMemberBinding="{Binding Description}">
                                <TextBlock Text="{Binding Description}" 
                                           ToolTipService.ToolTip="{Binding Description}" />


    You should have also fixed width for the column if you want trimming!

    I would like to kindly ask you also to keep our conversions in single place - no need to open forum post and support ticket for the same question. Usually forums are better since more people will benefit!

    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top