TextTrimming for Header

2 posts, 0 answers
  1. Ben
    Ben avatar
    4 posts
    Member since:
    Aug 2010

    Posted 20 Aug 2013 Link to this post

    Hello,

    I'm wondering how I can let a header do texttrimming?
    In the picture below, you can see that my column values are being trimmed, but the header text isn't..

    http://imageshack.us/photo/my-images/843/jrsp.png/

    Thanks!
  2. Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 22 Aug 2013 Link to this post

    Hi Ben, 

    In order to achieve your goal, you can define GridViewColumn's header like so:

    <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}">
                       <telerik:GridViewDataColumn.Header>                       
                          <TextBlock TextTrimming="CharacterEllipsis" Text="Some text"/>                      
                       </telerik:GridViewDataColumn.Header>
                   </telerik:GridViewDataColumn>

    Please, let me know how this works for you.

    Regards,
    Yoan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top