protected function AddOperationsColumns(Grid $grid) { $actionsBandName = 'actions'; $grid->AddBandToBegin($actionsBandName, $this->GetLocalizerCaptions()->GetMessageString('Actions'), true); if ($this->GetSecurityInfo()->HasViewGrant()) { $column = new RowOperationByLinkColumn($this->GetLocalizerCaptions()->GetMessageString('View'), OPERATION_VIEW, $this->dataset); $grid->AddViewColumn($column, $actionsBandName); } if ($this->GetSecurityInfo()->HasEditGrant()) { $column = new RowOperationByLinkColumn($this->GetLocalizerCaptions()->GetMessageString('Edit'), OPERATION_EDIT, $this->dataset); $grid->AddViewColumn($column, $actionsBandName); $column->OnShow->AddListener('ShowEditButtonHandler', $this); } }
protected function AddOperationsColumns(Grid $grid) { $actionsBandName = 'actions'; $grid->AddBandToBegin($actionsBandName, $this->GetLocalizerCaptions()->GetMessageString('Actions'), true); if ($this->GetSecurityInfo()->HasViewGrant()) { $column = new RowOperationByLinkColumn($this->GetLocalizerCaptions()->GetMessageString('View'), OPERATION_VIEW, $this->dataset); $grid->AddViewColumn($column, $actionsBandName); } if ($this->GetSecurityInfo()->HasEditGrant()) { $column = new RowOperationByLinkColumn($this->GetLocalizerCaptions()->GetMessageString('Edit'), OPERATION_EDIT, $this->dataset); $grid->AddViewColumn($column, $actionsBandName); $column->OnShow->AddListener('ShowEditButtonHandler', $this); } if ($this->GetSecurityInfo()->HasDeleteGrant()) { $column = new RowOperationByLinkColumn($this->GetLocalizerCaptions()->GetMessageString('Delete'), OPERATION_DELETE, $this->dataset); $grid->AddViewColumn($column, $actionsBandName); $column->OnShow->AddListener('ShowDeleteButtonHandler', $this); $column->SetAdditionalAttribute("data-modal-delete", "true"); $column->SetAdditionalAttribute("data-delete-handler-name", $this->GetModalGridDeleteHandler()); } }
protected function AddOperationsColumns(Grid $grid) { $actionsBandName = 'actions'; $grid->AddBandToBegin($actionsBandName, $this->GetLocalizerCaptions()->GetMessageString('Actions'), true); if ($this->GetSecurityInfo()->HasViewGrant()) { $column = new RowOperationByLinkColumn($this->GetLocalizerCaptions()->GetMessageString('View'), OPERATION_VIEW, $this->dataset); $grid->AddViewColumn($column, $actionsBandName); $column->SetImagePath('images/view_action.png'); } }
protected function AddOperationsColumns(Grid $grid) { $actionsBandName = 'actions'; $grid->AddBandToBegin($actionsBandName, $this->GetLocalizerCaptions()->GetMessageString('Actions'), true); if ($this->GetSecurityInfo()->HasEditGrant()) { $column = new InlineEditRowColumn('Edit', $this->dataset, $this->GetLocalizerCaptions()->GetMessageString('Edit'), $this->GetLocalizerCaptions()->GetMessageString('Cancel'), $this->GetLocalizerCaptions()->GetMessageString('Commit'), true); $grid->AddViewColumn($column, $actionsBandName); $column->OnShow->AddListener('ShowInlineEditButtonHandler', $this); } if ($this->GetSecurityInfo()->HasDeleteGrant()) { $column = new RowOperationByLinkColumn($this->GetLocalizerCaptions()->GetMessageString('Delete'), OPERATION_DELETE, $this->dataset); $grid->AddViewColumn($column, $actionsBandName); $column->SetImagePath('images/delete_action.png'); $column->OnShow->AddListener('ShowDeleteButtonHandler', $this); $column->SetAdditionalAttribute('data-modal-delete', 'true'); $column->SetAdditionalAttribute('data-delete-handler-name', $this->GetModalGridDeleteHandler()); } }