ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

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 2 years, 4 months ago.

  • Creator
    Topic
  • #60416

    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
  • #60417

    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)

You must be logged in to reply to this topic.

ssossossosso