0

我有以下Telerik RadGrid

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="true" AllowSorting="true"
PageSize="50" HeaderStyle-Height="20" ShowStatusBar="true" AllowCustomPaging="True"
OnNeedDataSource="RadGrid1_NeedDataSource" OnSortCommand="RadGrid1_SortCommand"
OnPageSizeChanged="RadGrid1_PageSizeChanged" OnPageIndexChanged="RadGrid1_PageIndexChanged"
OnItemCommand="RadGrid1_ItemCommand" OnItemDataBound="RadGrid1_ItemDataBound">
<clientsettings>
<Selecting AllowRowSelect="True" />
<Resizing EnableRealTimeResize="true" />
</clientsettings>
<exportsettings filename="list">
</exportsettings>
<mastertableview datakeynames="ID" autogeneratecolumns="false"> 
<PagerStyle AlwaysVisible="true" PagerTextFormat="{4} {5} item(s) in {1} page(s)" />
<Columns>
  <telerik:GridBoundColumn DataField="Contract" HeaderStyle-Width="20%" HeaderText="Contract Title" 
  UniqueName="Contract" SortExpression="Contract"> </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="Customer" HeaderStyle-Width="20%" HeaderText="Vendor"
  UniqueName="Vendor" SortExpression="Customer"> </telerik:GridBoundColumn>

 <telerik:GridBoundColumn DataField="Contractor" HeaderStyle-Width="20%" HeaderText="Contractor"
  UniqueName="Contractor" SortExpression="Contractor"></telerik:GridBoundColumn>

  **<telerik:GridBoundColumn DataField="Name" HeaderText="Service"
  UniqueName="Name" SortExpression="Name" Resizable="true"> </telerik:GridBoundColumn>**


</Columns>
</mastertableview>
</telerik:RadGrid>

我只想使最后一列(名称)可调整大小。我用过Resizable="true",但它不工作。还有其他方法吗?

4

1 回答 1

1

You need to add AllowColumnResize="True" on RadGrid and you can disable other column's resize properties by using Resizable="False".

于 2015-02-03T09:05:59.763 回答