2015年2月15日 星期日

Telerik Grid Width

1. By default, Grid will use auto layout for grid
2. If we need to specify the width

  set TableLayout="Fixed" and specified the column header and item to a specified width

Ex:

 <MasterTableView DataKeyNames="DELL_ACTIVITY_SHIPMENT_ID" 
                        DataSourceID="EntityDataSource1" ShowGroupFooter="true" TableLayout="Fixed">
                        <Columns>
                            <telerik:GridBoundColumn DataField="ROW_NO" 
                                HeaderText="ROW NO" AllowFiltering="false" 
                                SortExpression="ROW_NO" UniqueName="ROW_NO" DataType="System.Int32">
                                <HeaderStyle Width="60px" />

                                <ItemStyle Width="60px" />
 </telerik:GridBoundColumn>

沒有留言:

張貼留言