I have included in the following column grid (jqxgrid):
text: titleGrid[6], datafield: 'provincia', align: 'center', cellsalign: 'left', width: 160, editable: true, columntype:'combobox',
createeditor: function (row, cellvalue, editor, celltext, cellwidth, cellheight) {
var list = province.province;
var dataAd = new $.jqx.dataAdapter(sourceC);
editor.jqxComboBox({ autoDropDownHeight: true, source: list, displayMember: 'nomeprov', valueMember: 'sigla', promptText: "Scegli Provincia" });
}
where pro is an array of the type [‘nomeprov’: ‘Bari (BA)’, ‘sigla’: ‘BA’, ‘nomeprov’: ‘Napoli (NA)’, ‘sigla’: ‘NA’, …. ..].
When I click on edit, the combo box is displayed, but when the row is no longer edit, I show the ValueMember …..
How it manages to make me see the DisplayMember and not the ValueMember?
Thanks so much