Here it is:
grid.colModel =
[
{ title: "", hidden: true, editable: false, dataIndx: "FIELD1"},
{ title: "<span data-i18n='table.field2'>Field2</span>", dataType: "string", align: "center", width: 100, editable: false, dataIndx: "FIELD2",
filter: { type: 'select',
options: ['','v2'],
condition: 'equal',
listeners: [{ change: function (evt, ui) {
filter(conditionGridId, "FIELD2", $(this).val());
}
}]
}},
{ title: "<span data-i18n='table.field3'>FIELD3</span>", dataType: "string", align: "center", width: 100, editable: false, dataIndx: "FIELD3", getEditCellData: function (ui) {
var $cell = ui.$cell;
return $cell.children().val();
},filter: { type: 'select',
options: ['', 'LS'],
condition: 'equal',
listeners: [{ change: function (evt, ui) {
filter(conditionGridId, "FIELD3", $(this).val());
}
}]
}
},
{ title: "<span data-i18n='table.field4'>FIELD4</span>", dataType: "string", align: "center", width: 100, editable: false, dataIndx: "FIELD4",
filter: { type: 'select',
options: ['', 'v2'],
condition: 'equal',
listeners: [{ change: function (evt, ui) {
filter(conditionGridId, "FIELD4", $(this).val());
}
}]
}},
{ title: "<span data-i18n='table.field5'>FIELD5</span>", editable: true, align: "center", dataType: "float", width: 100, dataIndx: "FIELD5"},
{ title: "<span data-i18n='table.field6'>FIELD6</span>", editable: true, align: "center", dataType: "float", width: 100, dataIndx: "FIELD6"},
{ title: "<span data-i18n='table.field7'>FIELD7</span>", editable: true, align: "center", dataType: "float", width: 100, dataIndx: "FIELD7"},
{ title: "<span data-i18n='table.field8'>FIELD8</span>", editable: true, align: "center", dataType: "float", width: 100, dataIndx: "FIELD8"},
{ title: "<span data-i18n='table.field9'>FIELD9</span>", editable: true, align: "center", dataType: "float", width: 120, dataIndx: "FIELD9"}
];