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

Need Columns of Grid to Expand automatically based on Content

1 Answer 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dennis
Top achievements
Rank 1
Dennis asked on 07 Jul 2011, 01:07 PM

Can you please provide me with a Grid Demo with features :

 

  1. Expanding the columns width  according to the width of the Content (with single word entered).
  2. Expanding the columns according to the width of the Content (with multiple words entered).

 

 

      As I have seen that when there is a single word entered  the columns expand as per as the Content, but when there are multiple words

      With spaces in between them I have encountered one problem that some columns expand according to the content and

      Some columns do not expand and get shrink.



Thanks in Advance.

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 12 Jul 2011, 02:28 PM
Hi David,

If I understands you correctly you want to resize the columns enough that all words to be on single line.

In this demo: http://demos.telerik.com/aspnet-ajax/grid/examples/client/resizing/defaultcs.aspx
Turn ON "" and Turn OFF "" and this will cause columns to be wide enough to fit text in each cell without any words to go in new lines.

Greetings,
Vasil
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Grid
Asked by
Dennis
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or