jQuery UI Widgets Forums Grid multiselect combox in Grid column

This topic contains 4 replies, has 3 voices, and was last updated by  atomic 2 months, 1 week ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • multiselect combox in Grid column #69601

    timo75
    Participant

    I wonder if it is possible to use a multiselect combobox in a grid column and display the select items like seen in this demo:
    http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxcombobox/multiselect.htm

    When I set the grid editor to
    editor.jqxComboBox({ source: myAdapter, multiSelect: true, displayMember: ‘label’, valueMember: ‘value’ });
    I can select the different items, but when the editor is closed, the selected items are not displayed as seen in the combobox example above.

    Any help / examples appreciated.

    Thanks,
    Timo

    multiselect combox in Grid column #69613

    Dimitar
    Participant

    Hello Timo,

    You can try the approach shown in the demo Custom Column Editor for the column “Products”. You would only have to change the dropdownlist to a combobox.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    multiselect combox in Grid column #69637

    timo75
    Participant

    Thanks. In the dropdownlost example you mention there is no differentation between field values and labels. Is it possible to store the values but display a comma separated list of labels? I need this for managaing category assignments where each category has a name (label) and an ID (value; which is stored in the database).

    multiselect combox in Grid column #69861

    Dimitar
    Participant

    Hello Timo,

    You can customize what is displayed in the grid’s cell (and can later be retrieved by the various grid methods) in the geteditorvalue callback function.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    multiselect combox in Grid column #120520

    atomic
    Participant

    Hi Dimitar,

    I came to same issue when I have multiselect dropdownlist in jqx Grid. Yes you are right that we can customize display of items with geteditorvalue, but the cellvaluechanged event of the grid is then
    also affected. Is there way to only display names in jqx grid with multiselect dropdownlist?

    thanks

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

You must be logged in to reply to this topic.