Auto Adjust column width

7 posts, 0 answers
  1. Naunton
    Naunton avatar
    70 posts
    Member since:
    Jun 2010

    Posted 30 Dec 2010 Link to this post

    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.
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 04 Jan 2011 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Naunton
    Naunton avatar
    70 posts
    Member since:
    Jun 2010

    Posted 04 Jan 2011 Link to this post

    Thanks for the reply.

    My version is Q1 2010.
  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 05 Jan 2011 Link to this post

    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.
  6. Dinesh
    Dinesh avatar
    1 posts
    Member since:
    Sep 2011

    Posted 08 Sep 2011 Link to this post

    Hi,

    Can bestfit be accessed programatically?

    I have to render the grid with all coumns in bestfit.
  7. William Mace
    William Mace avatar
    12 posts
    Member since:
    Feb 2009

    Posted 24 Jan 2012 Link to this post

    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?
  8. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 27 Jan 2012 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017