0
我有一個分機:GridPanel。Ext.Net 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>
我剛剛收到通知,表示我的回答已被接受。當然,我會發表評論,而不是回答。現在我不能刪除它,因爲它被接受回答:) –