OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – How do I? Questions DataGrid Filter Values in JavaScript

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

    ummarfarooq87
    Participant

    Hi Team,
    How to fetch the custom datagrid filter value in java script
    Thanks and Regards,
    Ummar

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #41351

    Hryhorii Hrebiniuk
    Participant

    Hi Ummar,

    Could you expand the question? What you are trying to do?

    #41356

    ummarfarooq87
    Participant

    Hi Hryhorii,
    Orocrm Datagrid we are filtering the some columns after filtered the data grid how to get the filtered value in javascript
    Thanks and Regards,
    Ummar Farook

    #41361

    Hryhorii Hrebiniuk
    Participant

    Hi,

    You can get access to grid filters current value from the instance of the grid
    grid.collection.state.filters
    Filtered data is in
    grid.collection
    But it’s still not clear from your question, from what place you need to get the access. In any case, firstly, you need to get access to the grid instance.

    #41362

    ummarfarooq87
    Participant

    Hi,
    We are implement the custom export of datagrid we are fetching the data based on datagrid filter value so when we are filtering the datagrid we need to fetch the filter value.Please let us Know any Solution
    Thanks and Regards,
    Ummar

    #41368

    Hryhorii Hrebiniuk
    Participant

    See how export action works in OroPlatform
    https://github.com/oroinc/platform/blob/master/src/Oro/Bundle/DataGridBundle/Resources/public/js/datagrid/action/export-action.js#L52

    It has access to grid’s collection, in the state of the collection you can find filters value

    collection.state.filters

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

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

Back to top