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

Grid Columns Resizing Issue

1 Answer 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Keith
Top achievements
Rank 2
Iron
Veteran
Keith asked on 08 Mar 2013, 10:32 PM
I have a grid (version 2012.2.607.40) that has the resizing set as:
<Resizing AllowColumnResize="true"  ClipCellContentOnResize="true"
ResizeGridOnColumnResize="false" AllowRowResize="false" />

Then in my code behind, I am creating columns.  The last two columns created have the Resizable property set to false:
column.Resizable = false;

When I hover over the headers of the first set of columns, the right side of the header shows the mouse cursor change.  The two final columns do not allow the resize cursor to appear.  This works as expected.  However, when I actually change the size of the columns set to true, by default, it resizes the rest of the columns to fill the space of the grid.  Even the columns marked false.  That is my problem.

For example, say there are five Columns (A, B, C, D, and E).  D and E are set for Resizable = false.  By default each column is at 20% of the grids width.  If I resize column B down to 12%, I would hope to see A and C grow to 24% each while D and E stay at 20%.  However, I see all four resize to 22%.  Even the ones that should not resize.  Bummer!!

What can I do differently for the correct calculations to occur in resizing?

Best Wishes,
Keith

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 13 Mar 2013, 03:54 PM
Hi Keith,

I am afraid this is the default behavior and could not be changed. The reason is that we change the size of the resizing column and the rest are resized by the browser.

Greetings,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Keith
Top achievements
Rank 2
Iron
Veteran
Answers by
Kostadin
Telerik team
Share this question
or