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

AllowColumnResize conflicts with Layout.Auto and Wrap settings

4 Answers 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Al
Top achievements
Rank 1
Iron
Iron
Iron
Al asked on 11 Aug 2010, 02:38 PM
Hi,
I am using the default layout ie.RadGrid1.MasterTableView.TableLayout = GridTableLayout.Auto; and the grid shows fine when I set 'RadGrid1.ItemStyle.Wrap = false;' (see Untitled1.png).
When I set 'RadGrid1.ClientSettings.Resizing.AllowColumnResize = true;' then I see the following problems (as in Untitled2.png):
 - The Auto sizing seems to switch off and all columns get the same default size
 - The wrap setting (off) only gets applied to every odd row

Also, I wanted to know how to limit the size of the column when 'AllowColumnResize = true'. ie. I want to set a maxwidth for the column.

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 13 Aug 2010, 10:53 AM
Hi Al,

You could provide a valid width attribute for the columns using the HeaderStyle-Width property. For more information about how to achieve your goal, I suggest that you review the help article below:
http://www.telerik.com/help/aspnet-ajax/grdresizingcolumns.html

Greetings,
Pavlina
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
Al
Top achievements
Rank 1
Iron
Iron
Iron
answered on 13 Aug 2010, 11:27 AM
Thanks Pavlina, I will look into the example to control 'maxwidth'. Can you perhaps explain the behaviour I am seeing ie.

When I set 'RadGrid1.ClientSettings.Resizing.AllowColumnResize = true;' then I see the following problems (as in Untitled2.png):
- The Auto sizing seems to switch off and all columns get the same default size
- The wrap setting (off) only gets applied to every odd row
0
Pavlina
Telerik team
answered on 17 Aug 2010, 04:26 PM
Hi Al,

It is hard to determine the source of the problem based on the provided information. Can you try sending a sample illustrating the scenario implementation and the issue? We will check it out and turn back to you with our findings.

Sincerely yours,
Pavlina
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
Al
Top achievements
Rank 1
Iron
Iron
Iron
answered on 18 Aug 2010, 09:15 AM
Thank you - I have uploaded the project with support ticket 339742
Tags
Grid
Asked by
Al
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Pavlina
Telerik team
Al
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or