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

  • Creator
    Topic
  • #7990

    Rogyar
    Participant

    Recently we faced with a bit exotic task. We have an AJAX call which return the raw datagrid html (the result of dataGrid.renderGrid() twig macro). Then we need to render this grid somehow. As far as I know, during the page load we have a JS method initPageComponents() which renders elements with [data-page-component-module] attribute. The question is how I can call this method, or trigger some mediator event in order to render the raw datagrid html.
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #8064

    Alexandr Smaga
    Participant

    Hey @rogyar !

    You could use special action of mediator object – layout:init for this purposes. (see example)

    #8083

    Rogyar
    Participant

    Hey, Alexendr. Did not found this mediator’s event before. Thanks for pointing me to that, will try.

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

You must be logged in to reply to this topic.