Grid Header Text Too Long Will Clip

1 Answer 46 Views
Grid
yuki
Top achievements
Rank 2
Iron
Iron
Iron
yuki asked on 08 Jan 2024, 03:29 AM

Hi, my grid has many columns and some of them have very long header texts.

I already set <Resizing AllowColumnResize="true" AllowResizeToFit="true" ResizeGridOnColumnResize="true"  />

However the header text are still clipped.

I would like to set the long header text to be shown as whole instead of clipped.

Please help! Thanks!

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Vasko
Telerik team
answered on 10 Jan 2024, 03:49 PM | edited on 10 Jan 2024, 03:59 PM

Hi Yuki,

I tested with AllowColumnResize set to false and this fixed the long header texts for me, could you try switching it off to see if it will help you?  

Alalternatively, if you wish to keep the column resizing, you can set the width of each column with long header texts to ensure they are wide enough to display the entire header, like this: 

<telerik:GridBoundColumn ItemStyle-Width="300" DataField="OrderID" DataType="System.Int32"
    FilterControlAltText="Filter OrderID column" HeaderText="VERY_LONG_HEADER_TEXT"
    ReadOnly="True" SortExpression="OrderID" UniqueName="VERY_LONG_HEADER_TEXT">
    <HeaderStyle Width="500"/>
</telerik:GridBoundColumn>

Kind regards,
Vasko
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources
Tags
Grid
Asked by
yuki
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Vasko
Telerik team
Share this question
or