我有一个分机:GridPanel。
发生的情况是第一列的过滤器工作正常,但它也为所有其他列加载相同的过滤器,并且它们都过滤第一列。
你能看看我的GridPanel吗
<ext:GridPanel ID="GridPanelStudentHistory" runat="server" StoreID="StoreStudentHistory" StripeRows="true" Header="true" Title="Students" Border="true" AutoHeight="true" AutoWidth="true">
<LoadMask ShowMask="false" />
<ColumnModel ID="ColumnModel2" runat="server">
<Columns>
<ext:Column runat="server" ColumnID="StudentNo" Header="Student Number" Sortable="true" Width="150px" DataIndex="StudentNo" />
<ext:Column runat="server" ColumnID="StudentName" Header="Student Name" Sortable="true" Width="250px" DataIndex="StudentName" />
<ext:Column runat="server" ColumnID="StudentSurname" Header="Student Surname" Sortable="true" Width="250px" DataIndex="StudentSurname" />
<ext:Column runat="server" ColumnID="AbsentDays" DataIndex="AbsentDays" Header="Absent Days" Width="50" Sortable="true"/>
<ext:Column runat="server" ColumnID="marks" DataIndex="marks" Header="Marks" Align="Right" Width="150" Sortable="false"/>
</Columns>
</ColumnModel>
<View>
<ext:GridView ID="GridView2" runat="server" DeferEmptyText="false" EmptyText="No Items Available At This Moment" />
</View>
<Plugins>
<ext:GridFilters runat="server" ID="GridFilters3" Local="true">
<Filters>
<ext:NumericFilter DataIndex="StudentNo" />
<ext:StringFilter DataIndex="StudentName" />
<ext:StringFilter DataIndex="StudentSurname" />
</Filters>
</ext:GridFilters>
</Plugins>
<BottomBar>
<ext:PagingToolbar ID="PagingToolBar1" runat="server" StoreID="StoreStudentHistory" PageSize="50"
HideRefresh="true" DisplayInfo="true" DisplayMsg="Displaying Students {0} - {1} of {2}" />
</BottomBar>
</ext:GridPanel>