This is a migrated thread and some comments may be shown as answers.

Wordwrap for column header in kendo pivotgrid not working

1 Answer 540 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Krishnan
Top achievements
Rank 1
Krishnan asked on 09 Feb 2017, 08:14 PM

WordWrap is not happening in the column header of Kendo PivotGrid. I tried applying the following CSS to have word-wrap but it is not happening properly instead it is crossing the vertical column line and displayed in the next column. Instead my requirement is to display it in the next line of the same column.

Please find the snapshot for more details.

I tried applying following CSS to do wordwrap but it is not working 

.k-pivot .k-grid-header .k-header

{

    word-wrap: break-word !important; overflow: visible;

}

Any ideas what changes need to be done?

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 13 Feb 2017, 12:03 PM
Hi Krishnan,

You can use the same approach as the one described in this forum thread for the Grid widget. Just add these styles to your page:
.k-grid  .k-grid-header  .k-header  .k-link {
    height: auto;
}
   
.k-grid  .k-grid-header  .k-header {
    white-space: normal;
}


Regards,
Tsvetina
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
PivotGrid
Asked by
Krishnan
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or