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

undesired column width expanding

1 Answer 31 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dominik
Top achievements
Rank 1
Dominik asked on 02 Dec 2015, 04:18 PM

If column widths don't exceed the width of the Grid the rest of the space available is split among the columns. Is there a way to avoid this behavior? I have two action columns on my grid and I want them to be the same size no matter what. The rest of the columns can take the rest of the width of the grid.

The grid I'm using is not scrollable. I know that I could make the grid scrollable and not set the width of the last column (the last column would receive the extra width), but this is not acceptable because setting the grid to scrollable does not work with screen readers.

 

Dominik

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 03 Dec 2015, 11:32 AM
Hi Dominik,

The described undesired behavior can occur only if all columns have widths and their sum is smaller than the Grid width. I recommend setting widths to the columns that should have them, and leaving the rest of the columns with no widths. If needed, you can also apply a fixed table layout.

For more information, please check:

http://docs.telerik.com/kendo-ui/web/grid/appearance#column-width

I hope this helps.

Regards,
Dimiter Topalov
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
Dominik
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or