datagrid icon indicating copy to clipboard operation
datagrid copied to clipboard

How do I update the external snippet when the table is updated?

Open ivanscm opened this issue 3 years ago • 1 comments

This construction does not work:

public function createComponentGrid(): DataGrid
{
    // ...
    $grid->onRedraw[]= [$this, 'onRedrawGrid'];
}

public function onRedrawGrid()
{
    // ...
    if ($this->isAjax()) {
        $grid->getPresenter()->redrawControl('externalSnippet');
    }
}

ivanscm avatar Nov 26 '21 08:11 ivanscm

I use version 5 ×, I have datagrid in control (VideoHelp2GridControl extends UI\Control). Everything works (for example publish, trash within the component) until I do add/edit (ajax form in the presenter) and sendPayload. FlashMessage will stop working right after execution (for example, publish, trash within the component). Where can the problem be?

Thank you for answer.

JStika avatar Jan 01 '22 05:01 JStika