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

[Solved] Is there any way get the column auto width behavior of scrollable=false with a frozen column header that you get with scrollable=true?

3 Answers 274 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 15 Jan 2015, 04:20 PM
We have a grid where the number and relative widths of columns is unknown and variable.  Thus, the auto-sizing behavior you get with scrollable=false is exactly what we want.

However, with scrollable=false the header row does not remain fixed and thus is not visible when the grid scrolls.

Is there any way to get the fixed column header with the column auto-sizing?

3 Answers, 1 is accepted

Sort by
0
Jacob
Top achievements
Rank 2
answered on 15 Jan 2015, 06:20 PM
If you'd rather have your page scroll instead of the grid, then you may have to implement a way to make the grid header "sticky" outside of Kendo.  This would be very easy to do with a library like: http://stickyjs.com/.
0
Chris
Top achievements
Rank 1
answered on 16 Jan 2015, 06:59 PM
What I want is the grid to scroll itself while leaving the header in place like it does when you set scrollable=true while allowing the auto-sizing columns you get with scrollable=false.
0
Dimo
Telerik team
answered on 19 Jan 2015, 12:37 PM
Hello,

Column auto-sizing and Grid scrolling are mutually exclusive features. The following documentation section explains why:

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

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
Chris
Top achievements
Rank 1
Answers by
Jacob
Top achievements
Rank 2
Chris
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or