OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Programming Questions [Filter][DataGrid] how to create datagrid with pre-select filters dynamically?

This topic contains 1 reply, has 2 voices, and was last updated by  Yurii Muratov 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
  • #33968

    anhnhoktvn
    Participant

    I’d like to pass parameter from request to fitlers of dataGrid like this:

    how could i archive this?

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

    Yurii Muratov
    Participant

    Hi, anhnhoktvn.

    To set default value that comes from datagrid parameters, you can create own datagrid listener what will set this value to the filters part.

    Hereis listener class:

    Service definition of this listener:

    With this example, it’s not necessary to add default block definition in your datagrid.yml file.

Viewing 1 replies (of 1 total)

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

Back to top