protected function GetCustomRenderedViewColumn(CustomViewColumn $column, $rowValues) { $result = ''; $handled = false; $column->GetGrid()->OnCustomRenderExportColumn->Fire(array('pdf', $this->GetFriendlyColumnName($column), $column->GetData(), $rowValues, &$result, &$handled)); if ($handled) { return $result; } else { return null; } }
public function __construct($fieldName, $caption, $dataset, $linkInnerHtml = 'download') { parent::__construct($caption); $this->fieldName = $fieldName; $this->dataset = $dataset; $this->linkInnerHtml = $linkInnerHtml; }
public function __construct($fieldName, $caption, $dataset, $hintTemplate) { parent::__construct($caption); $this->fieldName = $fieldName; $this->dataset = $dataset; $this->hintTemplate = $hintTemplate; $this->sourcePrefix = ''; $this->sourceSuffix = ''; }
public function __construct($fieldName, $caption, $dataset, $downloadTextTemplate, Captions $captions, $downloadLinkHintTemplate = '') { parent::__construct($caption); $this->fieldName = $fieldName; $this->dataset = $dataset; $this->downloadTextTemplate = $downloadTextTemplate; $this->downloadLinkHintTemplate = $downloadLinkHintTemplate; $this->captions = $captions; }
public function __construct($fieldName, $caption, $dataset, $enablePictureZoom = true, $handlerName) { parent::__construct($caption); $this->fieldName = $fieldName; $this->dataset = $dataset; $this->imageHintTemplate = null; $this->enablePictureZoom = $enablePictureZoom; $this->handlerName = $handlerName; }
public function __construct($masterKeyFields, $name, $separatePageHandlerName, $inlinePageHandlerName, Dataset $dataset, $caption, $tabCaption) { parent::__construct($caption); $this->masterKeyFields = $masterKeyFields; $this->name = $name; $this->separatePageHandlerName = $separatePageHandlerName; $this->inlinePageHandlerName = $inlinePageHandlerName; $this->dataset = $dataset; $this->frameRandomNumber = Random::GetIntRandom(); $this->dataset->OnNextRecord->AddListener('NextRecordHandler', $this); $this->tabCaption = $tabCaption; }
protected function GetFriendlyColumnName(CustomViewColumn $column) { return $column->GetGrid()->GetDataset()->IsLookupField($column->GetName()) ? $column->GetGrid()->GetDataset()->IsLookupFieldNameByDisplayFieldName($column->GetName()) : $column->GetName(); }
private function GetTotalDataForColumn(CustomViewColumn $column, $totalValues) { if (isset($totalValues[$column->GetName()])) { $aggregate = $this->GetAggregateFor($column)->AsString(); $totalValue = $totalValues[$column->GetName()]; if (is_numeric($totalValue)) { $totalValue = number_format((double) $totalValue, 2); } $result = StringUtils::Format('%s = %s', $aggregate, $totalValue); $customTotalValue = ''; $handled = false; $this->OnCustomRenderTotal->Fire(array($totalValue, $aggregate, $column->GetName(), &$customTotalValue, &$handled)); if ($handled) { $result = $customTotalValue; } return $result; } return ''; }
public function __construct($innerField) { parent::__construct(''); $this->innerField = $innerField; $this->Bold = null; }
function __construct($caption, $dataset, $editButtonText, $cancelButtonText, $commitButtonText, $useImages = true) { parent::__construct($caption); $this->dataset = $dataset; $this->editButtonText = $editButtonText; $this->cancelButtonText = $cancelButtonText; $this->commitButtonText = $commitButtonText; $this->useImages = $useImages; $this->OnShow = new Event(); }
protected function CreateHeaderControl() { if ($this->ShowOrderingControl()) { $result = new HintedTextBox('HeaderControl', $this->GetCaption()); $result->SetHint($this->GetDescription()); return $result; } else { return parent::CreateHeaderControl(); } }