ssossossosso

Forums

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

This topic contains 2 replies, has 2 voices, and was last updated by  Alex Taylor 2 years, 6 months ago.

  • Creator
    Topic
  • #8364

    Alex Taylor
    Participant

    Hi there,

    Is there a way to listen to the changes to a datagrid with reference to its name. I have a page where there are two datagrids which need to work independently of each other and which need javascript to be triggered every time they change, again individually.

    I have included the following code in the datagrid.yml for both datagrids:

    I am however unsure about how to actually callback once any change happens to a datagrid.

    Any help would be appreciated,

    Alex

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #8368
    Yevhen Shyshkin
    Yevhen Shyshkin
    Oro Core

    Hello, Alex.

    Every data update in grid triggers fetch of pageable collection – I believe you can listen to sync event of collection – it triggers every time collection is updated.

    #8389

    Alex Taylor
    Participant

    Thanks mate,

    This worked a treat!

    FYI anyone wanting to do this within the init function of the code i pasted just modify it like so:

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

You must be logged in to reply to this topic.