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

[Solved] How to stop column "Autogrow"?

3 Answers 92 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chris Moore
Top achievements
Rank 1
Chris Moore asked on 17 Sep 2010, 04:44 AM
I want one of my columns to remain a fixed width unless the user explicitly resizes it with the mouse. The column has a mind of its own though and wants to grow beyond the initial width whenever there is more content than will fit. How can I stop the grid from engaging in this behavior? It would sure be nice and intutive if there were a property on the column such as AutoGrowEnabled...
 
Thanks.

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 17 Sep 2010, 06:41 AM
Hi,

 You can define explicitly Width for this column. For example Width="150".

Regards,
Vlad
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
Chris Moore
Top achievements
Rank 1
answered on 20 Sep 2010, 01:01 PM
That only establishes the initial width. If the user brings more rows into view whose column content is wider than what is displayed, those columns will automatically grow in size irrespective of whether their width property has been specified. I don't want to prevent the user from manually resiszing I just don't want the grids columns to automatically size and I want these columns to respect the Width property that is set when the grid is initialized.
0
Vlad
Telerik team
answered on 23 Sep 2010, 07:11 AM
Hello,

I've just tried this however everything worked as expected on my end. You can check the attached example application for reference. 

Sincerely yours,
Vlad
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
Tags
GridView
Asked by
Chris Moore
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Chris Moore
Top achievements
Rank 1
Share this question
or