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

Frozen columns & size

1 Answer 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Syleps
Top achievements
Rank 1
Veteran
Syleps asked on 15 Aug 2019, 06:51 AM

Hi, 

I have several questions regarding the management of locked columns.

 

1) Auto-size

Is there a way for unlocked columns to automatically calculate their size so that they fill the "free" part of the grid, as when there are no fixed columns?

The appearance of the horizontal scroller when displaying or hiding columns is simply illogical compared to the basic grid

I'm not talking about autofit, who make 'empty part' or display scroller 

 

2) Size in pixel

In asp.net mvc, we can give the size of the columns in em, vw, %, ...

This works for basic grids, but not when there are fixed columns.

Is it normal or is there a lack?

 

3)  All locked columns

Is there a way to have a basic grid but without the user changing the order of the columns

 

Regards

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 19 Aug 2019, 07:03 AM

Hi,

 

The locked columns feature is intended to be used when the columns shown in the Grid widget are do not fit the available width. You can fix some of the columns and have them visible at all times and scroll through the other columns.

With that said, in order for the locked columns to work as expected it is necessary to have at least one locked column initially and also make sure that the sum of widths for the columns is more than the width of the Grid. For more information on locked columns check out the article below:

https://docs.telerik.com/kendo-ui/controls/data-management/grid/columns/locked-columns

 

Regarding your second question. Locked columns require setting explicit widths for the columns. This will ensure that the layout of the Grid will be adjusted correctly.

 

About preventing the user from changing the columns order. For this you need to remove the Reorderable option from the Grid configuration or set it explicitly to false.

 

 

Regards, Viktor Tachev
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
Syleps
Top achievements
Rank 1
Veteran
Answers by
Viktor Tachev
Telerik team
Share this question
or