datagrid
datagrid copied to clipboard
How do I update the external snippet when the table is updated?
This construction does not work:
public function createComponentGrid(): DataGrid
{
// ...
$grid->onRedraw[]= [$this, 'onRedrawGrid'];
}
public function onRedrawGrid()
{
// ...
if ($this->isAjax()) {
$grid->getPresenter()->redrawControl('externalSnippet');
}
}
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.