protected function AddSingleRecordViewColumns(Grid $grid) { // // View column for username field // $column = new TextViewColumn('username', 'Username', $this->dataset); $column->SetOrderable(true); $column->SetMaxLength(75); $column->SetFullTextWindowHandlerName('staffGrid_username_handler_view'); $grid->AddSingleRecordViewColumn($column); // // View column for email field // $column = new TextViewColumn('email', 'Email', $this->dataset); $column->SetOrderable(true); $column->SetMaxLength(75); $column->SetFullTextWindowHandlerName('staffGrid_email_handler_view'); $grid->AddSingleRecordViewColumn($column); // // View column for DEPARTMENT field // $column = new TextViewColumn('dept_id_DEPARTMENT', 'Department', $this->dataset); $column->SetOrderable(true); $grid->AddSingleRecordViewColumn($column); // // View column for position field // $column = new TextViewColumn('position', 'Position', $this->dataset); $column->SetOrderable(true); $grid->AddSingleRecordViewColumn($column); // // View column for emp_number field // $column = new TextViewColumn('emp_number', 'Employee No', $this->dataset); $column->SetOrderable(true); $grid->AddSingleRecordViewColumn($column); // // View column for picture field // $column = new ExternalImageColumn('picture', 'Picture', $this->dataset, ''); $column->SetSourcePrefix(''); $column->SetSourceSuffix(''); $grid->AddSingleRecordViewColumn($column); }
protected function AddSingleRecordViewColumns(Grid $grid) { // // View column for image field // $column = new ExternalImageColumn('image', 'Image', $this->dataset, ''); $column->SetSourcePrefix(''); $column->SetSourceSuffix(''); $grid->AddSingleRecordViewColumn($column); // // View column for id field // $column = new TextViewColumn('id', 'Id', $this->dataset); $column->SetOrderable(true); $grid->AddSingleRecordViewColumn($column); }