ssossossosso

Forums

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

This topic contains 4 replies, has 3 voices, and was last updated by Artem Liubeznyi Artem Liubeznyi 1 year, 2 months ago.

  • Creator
    Topic
  • #21760

    cardiac
    Participant

    Hi,

    I have entities which hold some dates. I want to use these entities for a scheduler/calendar view. The easiest approach is to create an oro datagrid for the query, paramaters and filters.

    The scheduler (view) is completely finished, but I need to render/use the oro datagrid filters above the scheduler.

    Is there a way to init/render/use the datagrid filters without the datagrid view?

    I tried to start with FiltersManager(options) but I don’t know how to prepare the option fields.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #22080
    Mike Kudelya
    Mike Kudelya
    Oro Core

    Hi,

    I not fully understand how you want to use filter without grid, but disable grid you can following approach:

    File vendor/oro/platform/src/Oro/Bundle/DataGridBundle/Resources/public/js/datagrid/grid.js

    Add show grid property to grid object:

    Inside ‘initialize’ function write something like this:

    and wrap call renderToolbar() and renderGrid() functions in renderer() function. ~848 line.

    Further use new option in options section:

    #22081

    cardiac
    Participant

    hey Mike,

    thanks for your answer.

    I wanted to render the filters only. That’s it.
    No data loading from the grid or rendering. Just the filters and nothing else.

    best regards

    PS: I can show you if you like via slack. just contact me.

    #22143

    cardiac
    Participant

    Works fine Mike. Thanks.

    Do you plan to implement it in the oro platform?

    #22408
    Artem Liubeznyi
    Artem Liubeznyi
    Oro Core

    Don’t think we will do it ourselves, but you can submit a PR if you want.

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

You must be logged in to reply to this topic.