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

RadGrid Column Resizing

3 Answers 298 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John Roes
Top achievements
Rank 1
John Roes asked on 08 Mar 2011, 06:11 PM
Hi
I need some help
I have a radGrid set to a fixed width of 1000px.
The first 3 columns are fixed header width, not resizeable.
The next 3 columns are resizeable.
The rightmost column is fixed header width and not resizeable. It needs to maintain a 100px column width.
Whenever I resize any of the middle 3 columns, the rightmost column gets resized wider than 100px.

I need a way to have the rightmost column stay at 100px wide, regardless of how wide or narrow the middle 3 columns are resized to.
Can that be somehow be done?
Javascript onresize, another control added in? anything....
Thanks

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 09 Mar 2011, 01:34 PM
Hello John,

I believe the following information will throw some more light on using column widths:

http://www.telerik.com/community/forums/aspnet/grid/best-practice-for-grid-and-column-widths.aspx#1214355


Regards,
Pavlina
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
John Roes
Top achievements
Rank 1
answered on 09 Mar 2011, 02:16 PM
Pavlina
Thanks for the response.
I have checked all that and it still doesn't behave properly.
I left one of the 3 middle columns with no width specified and still the right column get resized.
I've tried IE8 without and without compatability mode on.
No difference.
No matter what I do, the right column won't stay fixed width.

Is there someway in javascript to reference the onresized event and manually reset that column width?
0
Pavlina
Telerik team
answered on 09 Mar 2011, 03:09 PM
Hi John,

The RadGrid control introduces a comprehensive client-side API, which enables you to resize, move, reorder, select and much more. Please refer to the following online demo for more information about how you can achieve the desired functionality: 
http://demos.telerik.com/aspnet-ajax/grid/examples/client/clientsideapi/defaultcs.aspx

You can also try setting the Resizable property to false for the last column and see if it helps.

All the best,
Pavlina
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Grid
Asked by
John Roes
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
John Roes
Top achievements
Rank 1
Share this question
or