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

[Solved] Strange behaviour column resize

2 Answers 122 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gerard Eikelboom
Top achievements
Rank 1
Gerard Eikelboom asked on 15 Apr 2011, 02:53 PM
Hi,
I noticed something in the grid with column re-sizing.
When I give the column a with and resize it, first it becomes larger before it get smaller.
When I remove the with and resize the column I don't see that behaviour.
The reason I give the columns a with is that when the grid is opend it shows everything.

Is this known?

Regards,
Gerard Eikelboom

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 15 Apr 2011, 03:23 PM
Hi Gerard,

This can happen if the columns' width configuration is incorrect, for example if the sum of all set column widths is less than the Grid width.

All the best,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Tim
Top achievements
Rank 1
answered on 08 Nov 2012, 05:33 PM
I am using the latest 2012 version of the controls, however, I see this behavior as well.  What happens is that the Grid control is not setting a width on the "t-grid-header-wrap > table" (the one holding the column headers) nor the width for the "t-grid-content > table" when it first initializes from the server.  However, once you start resizing a column, it then sets the "width" attribute in the style and then your column resizing goes all haywire.

NOTE:  I am using ALL fixed pixel widths on all my columns.

Is there any way to get the sizing of the columns to be what I am specifying server-side?  I don't really care if they don't take up the entire width of the grid.
Tags
Grid
Asked by
Gerard Eikelboom
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Tim
Top achievements
Rank 1
Share this question
or