extjs - 在 EXTJS 3.2.1 中按文本过滤网格
问题描述
我有一个网格EXTJS
。我需要添加文本框并通过文本来过滤网格。
这是我的网格:
Ext.onReady(function () {
var reportsGrid = new Ext.grid.GridPanel({
id: 'my-grid',
cm: new Ext.grid.ColumnModel([{
id: 'CourseId',
dataIndex: 'CourseId',
hidden: true
}, {
dataIndex: 'ActionCenterId',
hidden: true
}, {
header: 'AAAAA',
width: 115,
sortable: true,
,
dataIndex: 'NameCourse'
}]),
{
header: 'BBBB',
width: 100,
sortable: true,
dataIndex: 'ActionCenterName'
},
maxHeight: 350,
autoHeight: true,
width: 870,
store: xmlStore,
title: 'SEARCH'
});
reportsGrid.render('ext_grid_results');
var xmlStore = new Ext.data.Store({
url: "Services/course/courseService.aspx?serviceMethod=GetcourseDetails",
reader: new Ext.data.XmlReader({
record: 'Course',
totalRecords: 'results'
},
record
)
});
var record = Ext.data.Record.create([{
name: 'CourseId',
type: 'int'
}, {
name: 'ActionCenterId',
type: 'int'
}, {
name: 'NameCourse',
type: 'string'
}]);
});
我想在标题文本框中添加,当我在文本框中键入字母时,它将过滤数据。请建议我,我怎样才能做到这一点。
提前致谢
解决方案
推荐阅读
- javascript - DeviceOrientationEvent 不适用于所有服务器
- javascript - Node.js 多个应用程序
- python - 如何在 Apache Beam (Python) 中按键在静态查找表上以流模式加入 PCollection
- c# - UDP 打孔 - 可靠的算法
- html - 尝试使用scrapy spider在microsoft.com中查找登录链接
- javascript - react-native-snap-carousel 无法正确渲染
- tensorflow - Tensorflow-gpu + Keras 安装报错:无法加载原生 TensorFlow 运行时
- java - 从属性文件中读取俄语文本用问号替换俄语字符
- c# - 如何修复“提供了无效的请求 URI”。请求 URI 必须是绝对 URI 或必须设置 BaseAddress'
- google-cloud-dataflow - 有没有办法提高 Google Cloud Dataflow Worker Threading 的数量?