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 ''; }