ExtJS 3为什么不对所有列进行排序?

时间:2017-04-04 07:45:26

标签: javascript json extjs

我已经创建了几个列,当它们按升序和降序排序时,有两个具体的(auxiNombre和paciNombre)可排序属性不起作用。在其他所有列中都可以使用。它能是什么?

var columnsIncidencias = [
    {
        header: this.i18n.gridColumnId,
        dataIndex: 'id',
        defaultValue : -1,
        sortable:true,
        hidden: false
    },{
        header: this.i18n.gridColumnAuxiliar,
        dataIndex: 'auxiNombre',
        sortable:true,
        hidden: false
    },{
        header: this.i18n.gridColumnPaciente,
        dataIndex: 'paciNombre',
        sortable:true,
        hidden: false
    },{
        header: this.i18n.gridColumnDesc,
        dataIndex: 'inteMotivo',
        sortable:true,
        hidden: false
    },{        
        header: this.i18n.gridColumnFecha,
        dataIndex: 'inteFechaCrea',
        //width: 4,
        sortable: true,
        hidden: false,
        hideable: true,
        renderer: Ext.util.Format.dateRenderer('d/m/Y')
    },{
        header: this.i18n.gridColumnEstado,
        dataIndex: 'sene1Estado.valoNombre',
        sortable:true,
        //width: 50,
        hidden: false
    },{
        header: this.i18n.gridColumnCriticidad,
        dataIndex: 'sene1Criticidad.valoNombre',
        sortable:true,
        //width: 40,
        hidden: false
    },{
        header: this.i18n.gridColumnTipo,
        dataIndex: 'sene1Tipo.valoNombre',
        sortable:true,
        //width: 70,
        hidden: false
    }];

DataType为:

var recordIncidencia = Ext.data.Record.create([
        {name: 'id', type: 'int', defaultValue : -1, mapping : 'inteId'},
        {name: 'inteMotivo', type: 'string'},
        {name: 'inteEstadoId', type: 'int'},
        {name: 'sene1Estado.valoNombre', type: 'string', mapping: 'inteEstado'},
        {name: 'sene1Tipo.valoNombre', type: 'string', mapping: 'inteTipo'},
        {name: 'auxiNombre', type: 'string', mapping: 'auxiNombre'},
        {name: 'paciNombre', type: 'string', mapping: 'paciNombre'},
        {name: 'sene1Criticidad.valoNombre', type: 'string', mapping: 'inteCriticidad'},
        {name: 'inteFechaCrea',type: 'date', dateFormat: 'd/m/Y'}

    ]);

    var storeIncidencias = new Ext.data.JsonStore({
        autoLoad : false,
        url                 : ctx + '/incidenTeleasisGrid.do',
        baseParams          : { auxId: this.auxId},
        root                : 'results',
        id                  : 'inteId',
        totalProperty       : 'totalCount', 
        fields              : recordIncidencia,
        remoteSort          : true, 
        sortInfo            : {field: 'inteFechaCrea', direction: "DESC"}
    });

图像显示了我必须订购的GRID的数据。什么是黑色圆形是失败的列。

enter image description here

0 个答案:

没有答案