Hi I added a combobox inside of grid with a displaymember that is different from the valuemember. When the grid loads the valuemember is displayed in the column and only when I click in the cell does the combobox and displaymember appear. I’m sure it has something to do with createeditor function but I would like to always show displaymember even whem I’m not editing. can I do that?
here is column in grid…
{ text: ‘Status’, datafield: ‘ProjectStatus’, width: 80, columntype: ‘combobox’,
createeditor: function (row, cellvalue, editor) {
var statussource =
{
datatype: “xml”,
contentType: “application/json; charset=utf-8”,
datafields: [
{ name: ‘ProjectStatus’ },
{ name: ‘ProjectStatusID’ }
],
async: false,
record: ‘Table’,
url: “CSWebService.asmx/GetCSProjectStatusCombo”
};
var statusAdapter = new $.jqx.dataAdapter(statussource);
editor.jqxComboBox({
source: statusAdapter,
displayMember: “ProjectStatus”,
valueMember: “ProjectStatusID”
});
}
},