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

Auto Adjust column width

6 Answers 738 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Naunton
Top achievements
Rank 1
Naunton asked on 31 Dec 2010, 02:32 AM
Hi all,

Want to know how to auto adjust column width?
In window I use

Grid1.Template.BestFitColumns()
How to do in ASP.net ?

Thanks and best regards.

6 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 04 Jan 2011, 05:15 PM
Hi Naunt,

Since the Q3 2010 release of Telerik RadControls, grid columns now support the "resize to fit" functionality. Double-clicking the resize handle or choosing 'Best Fit' from the header context menu will have the column automatically resized to fit the widest cell content without wrapping. To enable best fit resizing:
ClientSettings -> Resizing -> AllowResizeToFit = true/false

Please review this online example and let us know if further assistance is needed.

Regards,
Pavlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Naunton
Top achievements
Rank 1
answered on 05 Jan 2011, 02:28 AM
Thanks for the reply.

My version is Q1 2010.
0
Pavlina
Telerik team
answered on 05 Jan 2011, 09:08 AM
Hi Naunt,

You can refer to the following article from our Knowledge Base for instructions on how to update. You can also check the following videos that might be helpful:

http://tv.telerik.com/watch/aspnet/video/manually-upgrade-web-project-with-bin-deployment
http://tv.telerik.com/watch/aspnet/video/manually-upgrade-web-project-with-gac-deployment
http://tv.telerik.com/watch/aspnet/video/upgrade-web-project-with-vsx-upgrade-wizard

Regards,
Pavlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Dinesh
Top achievements
Rank 1
answered on 08 Sep 2011, 05:23 PM
Hi,

Can bestfit be accessed programatically?

I have to render the grid with all coumns in bestfit.
0
William Mace
Top achievements
Rank 1
answered on 24 Jan 2012, 08:44 PM
Telerik Admins - Could you please address this question:Can bestfit be accessed programatically?

I have to render the grid with all coumns in bestfit.               

Why is this method in the WinForms but not the ASP.NET AJAX verison?  How can developers accomplish this task?
0
Pavlina
Telerik team
answered on 27 Jan 2012, 07:19 PM
Hello,

You can refer to the forum thread below for addition information on the matter:
http://www.telerik.com/community/forums/aspnet-ajax/grid/programmatically-resize-all-columns.aspx

Regards,
Pavlina
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
Naunton
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Naunton
Top achievements
Rank 1
Dinesh
Top achievements
Rank 1
William Mace
Top achievements
Rank 1
Share this question
or