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

kendoGrid column fix width

1 Answer 416 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Krutika
Top achievements
Rank 1
Krutika asked on 18 Apr 2013, 08:42 AM
Hi,

i want fix width of column in kendoGrid, i tried using width:100px but when text is too long like
 (Ex. asgfsgdajhdkjashdasdklaskdljaslkdjlkasj) column width aoutomatically incresed,
 is there any way to handel overflow text or nowrap property to break text and add it to next line.

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 18 Apr 2013, 08:56 AM
Hi Krutika,


This is the default behavior, when the table has a fixed layout (i.e. when the Grid is scrollable). If that is not the case, you could manually set the styles.
E.g.
#Grid table
{
  table-layout: fixed;
}
 
#Grid td
{
  word-wrap: break-word;
}

 

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