Multi-Line Header Texts

2 posts, 0 answers
  1. bla
    bla avatar
    18 posts
    Member since:
    Aug 2020

    Posted 26 Aug Link to this post

    Can the behaviour of column header cell be changed to the following one?
    When there is no space to display the whole header text, the text shall be wrapped so that it spreads over 2 (or more) lines.

    (Initially now the text is cut off and 3 dots are added at the end.)
  2. Nadya
    Admin
    Nadya avatar
    378 posts

    Posted 27 Aug Link to this post

    Hello,

    I noticed that you asked the same question about achieving multi-line header text in RadVirtualGrid in your other thread. Note that RadGridView and RadVirtualGrid are similar controls and they have similar formatting events when customizing cells/rows.

    In RadGridView there are CellFormatting/ViewCellFormatting and RowFormattng/ViewRowFormatting events. Please refer to the following documentation articles that would give more information about these events:
    https://docs.telerik.com/devtools/winforms/controls/gridview/cells/formatting-cells
    https://docs.telerik.com/devtools/winforms/controls/gridview/rows/formatting-rows

    If you want to wrap the header text in RadGridView you can use the TextWrap property of the cell element in the ViewCellFormatting event which is triggered for the header cells.

    I hope this information helps. If you have other questions do not hesitate to contact me.

    Regards,
    Nadya
    Progress Telerik

    Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

Back to Top