function __construct($page, $dataset, $name) { $this->page = $page; $this->dataset = $dataset; $this->internalName = $name; // $this->editColumns = array(); $this->viewColumns = array(); $this->printColumns = array(); $this->insertColumns = array(); $this->exportColumns = array(); $this->singleRecordViewColumns = array(); $this->details = array(); // $this->SearchControl = new NullComponent('Search'); $this->UseFilter = false; // $this->showAddButton = false; // $this->OnCustomRenderTotal = new Event(); $this->OnCustomDrawCell = new Event(); $this->BeforeShowRecord = new Event(); $this->BeforeUpdateRecord = new Event(); $this->BeforeInsertRecord = new Event(); $this->BeforeDeleteRecord = new Event(); $this->AfterUpdateRecord = new Event(); $this->AfterInsertRecord = new Event(); $this->AfterDeleteRecord = new Event(); $this->OnCustomDrawCell_Simple = new Event(); $this->OnCustomRenderColumn = new Event(); $this->OnBeforeDataChange = new Event(); $this->OnDisplayText = new Event(); $this->OnCustomRenderPrintColumn = new Event(); $this->OnCustomRenderExportColumn = new Event(); $this->OnGetCustomTemplate = new Event(); // $this->SetState(OPERATION_VIEWALL); $this->allowDeleteSelected = false; $this->highlightRowAtHover = false; $this->defaultOrderColumnFieldName = null; $this->defaultOrderType = null; $this->sortedColumns = array(); $this->defaultSortedColumns = array(); $this->bands = array(); $this->defaultBand = new GridBand('defaultBand', 'defaultBand'); $this->bands[] = $this->defaultBand; $this->actions = new ActionList(); // $this->useImagesForActions = true; $this->SetWidth(null); $this->SetEditClientValidationScript(''); $this->SetInsertClientValidationScript(''); $this->name = 'grid'; $this->enabledInlineEditing = true; $this->useFixedHeader = false; $this->showLineNumbers = false; $this->showKeyColumnsImagesInHeader = true; $this->useModalInserting = false; $this->allowOrdering = true; $this->filterBuilder = new FilterBuilderControl($this, $this->GetPage()->GetLocalizerCaptions()); $this->quickFilter = new QuickFilter(get_class($this->GetPage()), $this->GetPage(), $this->GetDataset()); $this->advancedSearchAvailable = true; $this->showFilterBuilder = true; $this->viewMode = ViewMode::getDefaultMode(); $this->cardCountInRow = 3; }