jQWidgets Forums

jQuery UI Widgets Forums Lists ComboBox DisplayMember Combobox inside Grid

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • DisplayMember Combobox inside Grid #55533

    Gopre400
    Participant

    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”
    });
    }
    },

    DisplayMember Combobox inside Grid #55539

    Peter Stoev
    Keymaster

    Hi Gopre400,

    Please, look at: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/gridkeyvaluescolumnwitharray.htm?arctic. The sample is for jqxDropDownList, but the approach is identical for jqxComboBox.

    Best Regards,
    Peter Stoev

    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.