私はExtjs4を使用しています。グリッドフィルタリングにexactMatchを適用したいと思います。私は、新しく導入されたグリッドフィルタリング機能を使用しています。私はexactMatchを使用しようとしましたが、動作しません。Extjs4を使用してグリッドフィルタ機能で完全一致を適用するにはどうすればよいですか?
Ext.define('MyModel', {
extend: 'Ext.data.Model',
fields: [
{name: 'ID', type: 'string'},
{name: 'Title', type: 'string'}
]
});
var store = Ext.create('Ext.data.Store', {
model: 'MyModel',
proxy: {
type: 'ajax',
url: 'myurl',
reader: {
type: 'json'
}
},
sorters: [{
property: 'ID',
direction:'DESC'
}],
autoLoad:true
});
var filters = {
ftype: 'filters',
encode: true,
local: true,
filters: [{
type: 'numeric',
dataIndex: 'ID',
disabled: true
},{
type: 'string',
dataIndex: 'Title',
exactMatch:true
}]
};
var grid = Ext.create('Ext.grid.Panel', {
store: store,
columns: [{
header: 'ID',
dataIndex: 'ID',
width: 20
},{
header: 'List Title',
dataIndex: 'Title',
flex:1
}],
renderTo: 'editor-grid',
width: 700,
height: 400,
frame: true,
features: [filters]
});
おかげ..
こんにちは、私は尋ねました。フィルタリングの正確な一致。あなたの答えはそれに関連していますか? extJSの新機能です。だから私が何かばかげて尋ねているのであれば気にしないでください。 – Sohel
私はExtJSも新しくなっています。 ExtJs Docsのグリッドの機能として、「完全一致」は表示されません。http://docs.sencha.com/ext-js/4-0/#!/api/Ext.grid.feature.Feature 。あなたはどこを見つけましたか? – orandov