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

Column not rendering when fixed widths are larger than grid width

4 Answers 104 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JSON
Top achievements
Rank 1
JSON asked on 04 Jun 2015, 12:55 AM

I have noticed a peculiar behavior where if you have column widths larger than the total grid size, columns that do not have a fixed width won't render, even if they are supposed to. I have created a dojo that shows the problem:

http://dojo.telerik.com/@yazdog8/OSOKi/2

 The "Contact Name" column isn't rendered on creation of the grid. If you were to hide a fixed width column, say "Contact Title", all of the columns that should be shown are present. However, if you re-activate the fixed width column you just hit, the column with no width is hidden again. I'd expect that even if all of the widths exceed the grid width, you would at least see something for the non fixed width column. 

4 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 05 Jun 2015, 08:57 AM

Hello Joe,

This behavior is expected. When the scrolling of the Grid is enabled, the layout of the Grid's table is set to fixed. This means that the width of the columns will not depend on their content, but the browser will size them as suitable. If there are columns with no width set, the browser will allocate them in the space that is left, and since there is no such place in this case, they won't be displayed at all.

I hope this information was helpful.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
JSON
Top achievements
Rank 1
answered on 05 Jun 2015, 04:44 PM

Dimiter,

 Thanks for the clarification. Wondering if it might be a nice feature to have a min-width option in the columns just for this purpose.

 -Joe

0
Dimiter Madjarov
Telerik team
answered on 08 Jun 2015, 09:12 AM

Hello Joe,

Currently the columns have a minScreenWidth configuration option. It determines the minimum pixel width of the screen, on which the column will be visible.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
JSON
Top achievements
Rank 1
answered on 08 Jun 2015, 04:47 PM
Thanks! Will give it a try.
Tags
Grid
Asked by
JSON
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
JSON
Top achievements
Rank 1
Share this question
or