Ublaboo\DataGrid\DataGrid::redrawItem PHP Method

redrawItem() public method

Redraw just one row via ajax
public redrawItem ( integer $id, mixed $primary_where_column = NULL ) : void
$id integer
$primary_where_column mixed
return void
    public function redrawItem($id, $primary_where_column = NULL)
    {
        $this->snippets_set = TRUE;
        $this->redraw_item = [$primary_where_column ?: $this->primary_key => $id];
        $this->redrawControl('items');
        $this->getPresenter()->payload->_datagrid_url = $this->refresh_url;
        $this->onRedraw();
    }
DataGrid