Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: combobox on grid combobox on grid #71073

    masda
    Participant

    Can someone help?

    in reply to: combobox on grid combobox on grid #70787

    masda
    Participant

    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

    in reply to: tree checkbox tree checkbox #66350

    masda
    Participant

    ok, but i use one field call selected, and use dataAdapter with the getRecordsHierarchy, after the widget initialization, how can i get the field “selected”?
    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)