OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – How do I? Questions [Filter][DataGrid] how to set the filter to multi choices with custom text?

This topic contains 1 reply, has 1 voice, and was last updated by  anhnhoktvn 8 years, 6 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #36055

    anhnhoktvn
    Participant

    Hi,
    In my grid, i have a ‘Status’ column with the config:

    # file: config/datagrid.yml
    # ...
    columns:
    # ...
    status:
    label: 'Status'
    frontend_type: select
    choices:
    0: Disabled
    1: Enabled
    # ...
    filters:
    columns:
    # ...
    status:
    type: number
    data_name: g.status
    # what should i do here to show the multi choices?

    and i found that there is nothing about filtering datagrid in the document.
    Thanks for any help.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #36056

    anhnhoktvn
    Participant

    I found how to do it:

    status:
    type: choice
    data_name: g.status
    options:
    field_options:
    multiple: false
    choices:
    0: Disabled
    1: Enabled

    Anyway, i think we should have more documents for the filter section.

Viewing 1 replies (of 1 total)

The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.

Back to top