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

RadGrid fixed witdh with column resizing enabled

3 Answers 250 Views
Grid
This is a migrated thread and some comments may be shown as answers.
USI
Top achievements
Rank 1
USI asked on 30 May 2012, 12:21 PM
Hi,

Is there anyway to have a radgrid to keep the same width even if I resize its columns. For example when resizing a specific column automatically resize the other columns to maintain the table width?

Thanks in advance

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 30 May 2012, 12:32 PM
Hi,

You should set ClientSettings.Resizing.ResizeGridOnColumnResize property to False (the default), if you want the grid to preserves its size and resizes the rest of the columns evenly. More information about columns resizing is available in the online resources below:
http://www.telerik.com/help/aspnet-ajax/grid-resizing-columns.html
http://demos.telerik.com/aspnet-ajax/grid/examples/client/resizing/defaultvb.aspx

Greetings,
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.
0
USI
Top achievements
Rank 1
answered on 30 May 2012, 02:46 PM
Hi,

I use the attributes you mentioned but it is not working (AllowColumnResize="true" and ResizeGridOnColumnResize="false")...
My RadGrid width is set to 100%, if I specify a specific value like 500px then it works, the table width remains the same on column resize.

I still need to make the grid width 100% to be resized depending on its parent element. Any Idea to solve this problem? 

Michael Pinheiro
0
Pavlina
Telerik team
answered on 31 May 2012, 02:05 PM
Hello Michael Pinheiro,

Can you specify if you have Scrolling enabled for the RadGrid? Also elaborate a bit more about your scenario. What is the parent element in which the grid is placed?

Greetings,
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
USI
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
USI
Top achievements
Rank 1
Share this question
or