I followed an example by but now, the combo box is blank when I load the grid, but after the update, the value is correct, this is my code:
`var source_combobox_parente =
{
datatype: “json”,
datafields: [
{ name: ‘utente_tipo_parente_id’ },
{ name: ‘utente_tipo_descricao’ }
],
url: ‘./php/utente_maint.php’,
type: ‘POST’,
data: {funcao : funcao}
};
var dataAdapter_combobox_parente = new $.jqx.dataAdapter(source_combobox_parente);
var source_parentes =
{
datatype: “json”,
datafields: [
{ name: ‘utente_parente_tipo_parente’},
{ name: ‘tipo_parente’, value: ‘utente_parente_tipo_parente’, values: {source: dataAdapter_combobox_parente.records, value: ‘utente_tipo_parente_id’, name: ‘utente_tipo_descricao’}}
], …
$(“#jqxgrid_parentes”).jqxGrid(
{
width: ‘100%’,
height: ‘100%’,
source: dataAdapter_parentes,
columnsresize: true,
sortable: true,
columnsreorder: true,
filterable: true,
columns:
[
{ text: ‘Tipo Parente’, datafield: ‘utente_parente_tipo_parente’, displayfield: ‘tipo_parente’, columntype: ‘combobox’,
createeditor: function (row, value, editor) {
editor.jqxComboBox({ source: dataAdapter_combobox_parente, displayMember: ‘utente_tipo_descricao’, valueMember: ‘utente_tipo_parente_id’ });
}
}, …
thanks