jQuery UI Widgets Forums Grid combobox in the grid row shows the value and not the text

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 8 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • dave11
    Participant

    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


    ivailo
    Participant

    Hi dave11,

    Please, refer to our Custom ComboBox Column demo.
    It can be helpful for you.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.