我现在正在管理一个共享点站点,该站点具有一系列不同的报告,这些报告本质上是充满数据的 radgrids。用户抱怨过滤不再适用于大多数报告。
它们过去都可以正常工作,由于某种原因,现在只有一些页面会过滤,其他页面什么也不做。我对 Telerik 比较陌生,无法弄清楚为什么会出现排序问题。
c# 代码位于 SP 2010 之上
这是 radgrid 的代码
<%-- raok 10/2012 - add employee ID to report --%>
<telerik:GridBoundColumn SortExpression="Employee_ID" HeaderText="Employee ID" HeaderButtonType="TextButton"
DataField="Employee_ID" Visible="true" AllowFiltering = "false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="Form_Has_Conflicts" HeaderText="Form Has Conflicts"
HeaderButtonType="TextButton" DataField="Form_Has_Conflicts" Visible="true" AllowFiltering = "false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="Employee_Supervisor" HeaderText="Employee Supervisor"
HeaderButtonType="TextButton" DataField="Employee_Supervisor" Visible="true" AllowFiltering = "false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="Last_Name" HeaderText="Last Name" HeaderButtonType="TextButton"
DataField="Last_Name" Visible="true" AllowFiltering = "false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="DateModified" HeaderText="Date Modified"
HeaderButtonType="TextButton" DataField="DateModified" Visible="true" AllowFiltering = "false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="Employee_VP" HeaderText="Employee VP" HeaderButtonType="TextButton"
DataField="Employee_VP" Visible="true" AllowFiltering = "false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="Employee_Supervisor" HeaderText="Employee Supervisor"
HeaderButtonType="TextButton" DataField="Employee_Supervisor" Visible="true" AllowFiltering = "false">
</telerik:GridBoundColumn>
</Columns>
</telerik:GridTableView>
</DetailTables>
<Columns>
<telerik:GridBoundColumn SortExpression="Title" HeaderText="Title" HeaderButtonType="TextButton"
DataField="Title" Visible="True" AllowFiltering="true" FilterControlWidth = "260px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">
<HeaderStyle Width="290px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="Cycle_Year" HeaderText="Cycle Year" HeaderButtonType="TextButton"
DataField="Cycle_Year" Visible="false" AllowFiltering="false">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="Form_ID" HeaderText="Form ID" HeaderButtonType="TextButton"
DataField="ID" Visible="True" AllowFiltering="false">
<HeaderStyle Width="60px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="Form_Status" HeaderText="Form Status" HeaderButtonType="TextButton"
DataField="Form_Status" Visible="false" AllowFiltering="false">
<HeaderStyle Width="100px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="Last_Modified_by" HeaderText="Last Modified by"
HeaderButtonType="TextButton" DataField="Last_Modified_by" Visible="true" AllowFiltering="false">
<HeaderStyle Width="150px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="Created_By" HeaderText="Created By" HeaderButtonType="TextButton"
DataField="Created_By" Visible="true" AllowFiltering="false">
<HeaderStyle Width="150px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="EmployeeFullName" HeaderText="Form Owner Last Name" HeaderButtonType="TextButton"
DataField="EmployeeFullName" Visible="false" UniqueName="EmployeeFullNameColumn" AllowFiltering="false">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True">
</Scrolling>
<Selecting AllowRowSelect="true" />
</ClientSettings>