我有一个分机: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>
答案 0 :(得分:1)
我不太清楚会发生什么。
你可以用一个完整的样本开始一个新的论坛帖子来重现吗? http://forums.ext.net/forumdisplay.php?18-2-x-Help