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

RadGrid maximum width

1 Answer 445 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ian Cowley
Top achievements
Rank 1
Ian Cowley asked on 25 Mar 2009, 03:29 PM
I have added resizable columns to my RadGrid control, however I haven't figured out a way of setting the maximum width you can stretch the entire grid to.  Does anyone know of a way to do this?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 26 Mar 2009, 06:25 AM
Hello Ian,

To avoid resizing the grid beyond a certain width on column resizing, you can set the grid width to the required value and then set the ResizeGridOnColumnResize property in the ClientSettings of the grid to false as shown below:

aspx:
<telerik:RadGrid ID="RadGrid1" Width="1000px"  DataSourceID="SqlDataSource1" runat="server"
           <MasterTableView TableLayout="Fixed" DataSourceID="SqlDataSource1"
              
                <Columns> 
                  ..... 
                </Columns>              
            </MasterTableView> 
            <ClientSettings>            
              <Resizing AllowColumnResize="true" ResizeGridOnColumnResize="false" /> 
            </ClientSettings> 
        </telerik:RadGrid> 

Thanks
Princy.
Tags
Grid
Asked by
Ian Cowley
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or