OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – How do I? Questions How to add Filter in datagrid that its datasource is an array

This topic contains 2 replies, has 3 voices, and was last updated by oro_newbie oro_newbie 1 year, 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
  • #36645

    Rachid
    Participant

    Hi,

    I’m trying to add a filter to a datagrid that its datasource is an array.
    I followed the the Documentation on Array datasource but I can’t find a way how to do it.

    So how do I add a filter to a datagrid with an array as a datasource?

    Thanks and Regards,
    Rachid

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #37315
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Unfortunately, using existing filters is not possible due to a lot of hardcoded dql in them.

    Each datasource implementation require it’s own extensions to do sortings, filtering, pagination etc
    and filters will require custom implementation for each datasource.

    And there is no built-in filters implementation for array datasource.

    #37483
    oro_newbie
    oro_newbie
    Participant

    @Rachid: you can however create a provider that returns the array. Try Mike’s post here. In the place of query is where you will be adding your array.

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

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

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

Yes No