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

how to fix columns width without expanding to fill all the grid

3 Answers 3150 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Freddy
Top achievements
Rank 1
Freddy asked on 06 Apr 2016, 09:03 AM

Hello there,

The observable behavior about the column width is that if the columns have explicit fixed width, and the sum of the fixed width less than the grid width, kendo grid will ignore the width and expand columns to fill the gird. 

But now, I need to make all the columns have  fixed width, user can add or remove columns. So sometimes it will just have one column, or sum of the column width less than grid width, we would not like the column expand to the grid, we hope it just take the fixed width, the remain area become blank.

Is there an solution to solve this issue?

3 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 08 Apr 2016, 08:11 AM
Hi Freddy,

This scenario is not supported out-of-the-box by Kendo UI Grid. As a workaround I would suggest adding an additional empty column without explicit width. Take a look at this dojo which demonstrates the suggested approach in action.

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Simon
Top achievements
Rank 1
answered on 28 Feb 2019, 12:51 PM

Hello, 

is the planed in any further release that e.g. the frist column is freezed and without a with the columns uses the full rid space?

We love the Freeze column feature but this is almost a must for freezed column for used in in real world scenarios. The problem with fixed columns is when you not used it on mobile devices it just looks ugly.

0
Preslav
Telerik team
answered on 04 Mar 2019, 07:42 AM
Hello Simon,

I understand the problem. Unfortunately, we cannot fully resolve this limitation as we use a regular HTML table inside the Grid.

To remove the empty space, you could check this article:

Regards,
Preslav
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Freddy
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Simon
Top achievements
Rank 1
Preslav
Telerik team
Share this question
or