How to wrap kendo grid column

1 Answer 2091 Views
Grid
vinod
Top achievements
Rank 1
vinod asked on 04 Mar 2014, 10:01 AM
my gridcolumn is like that
        gridColumns: [
            {
                title: 'ID',
                field: 'ObservationId',
                width: '0', hidden: true
            },
            {
                title: 'School',
                field: 'SchoolName',
                width: '250px'
            },
            {
                title: 'Teacher Name(s)',
                field: 'TeacherName',
                width: '100',
            }]

if suppose screen is doing zoom then header should be wrap. Can we add something on this column.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 05 Mar 2014, 04:47 PM
Hi Vinod,

Yes, you can use headerAttributes.

http://docs.telerik.com/kendo-ui/api/web/grid#configuration-columns.headerAttributes

headerAttributes: {
    style: "white-space: normal"
}


Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
vinod
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or