OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform How to set 'operator_choices' on datagrid.yml ?

This topic contains 4 replies, has 5 voices, and was last updated by dnahrebecki dnahrebecki 2 years, 10 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
  • #36892

    Rodolfo
    Participant

    Hello!

    I’m trying to set some specific filter options on datagrid but it’s not working. This is an example of what I’m doing:

    filters:
    columns:
    email:
    type: string
    data_name: acmeentity.email
    options:
    operator_choices:
    - 'is equal to'
    - 'is empty'
    - 'is not empty'

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #36893
    Mike Kudelya
    Mike Kudelya
    Participant

    Hi

    At the moment you should use the following approach:

    #36894

    roldan
    Participant

    Hi Mike,

    I’m having the same problem that Rodolfo has. I need to configure my “operator_choices” of NumberRangeFilterType.
    For example, I have the following filters section of one datagrid:

    So I’m trying to set only “equals to” as operator choice to my number filter but I’m not being able to do it. All operators choices are showing up (equal, not equal, between, etc…)

    Maybe I’m doing something wrong?

    Thanks,
    Matías

    #36895
    dzakharov
    dzakharov
    Participant

    Hi Roldan, try to use the following approach:

    #36896
    dnahrebecki
    dnahrebecki
    Moderator

    Rodolfo, roldan,

    marking this topic as resolved. If you’ll have any further questions don’t hesitate to ask.
    Thanks!

    Best Regards,
    Daniel Nahrebecki

Viewing 4 replies - 1 through 4 (of 4 total)

The forum ‘OroPlatform’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No