Фильтровать сетку по тексту в EXTJS 3.2.1 - PullRequest
0 голосов
/ 15 мая 2018

У меня есть сетка в 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'
    }]);
});

Я хочу добавить в текст заголовка-box, который будет фильтровать данные при вводе букв в текстовом поле.Подскажите пожалуйста, как мне этого добиться.

Заранее спасибо

...