本文整理汇总了PHP中Grid::SetWidth方法的典型用法代码示例。如果您正苦于以下问题:PHP Grid::SetWidth方法的具体用法?PHP Grid::SetWidth怎么用?PHP Grid::SetWidth使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Grid
的用法示例。
在下文中一共展示了Grid::SetWidth方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CreateGrid
protected function CreateGrid()
{
$result = new Grid($this, $this->dataset, 'offerte_dettaglio_articoliDetailViewGrid0offerte');
$result->SetAllowDeleteSelected(false);
$result->SetUseFixedHeader(false);
$result->SetShowLineNumbers(true);
$result->SetAllowOrdering(false);
$result->SetHighlightRowAtHover(false);
$result->SetWidth('');
$this->AddFieldColumns($result);
return $result;
}
示例2: CreateGrid
protected function CreateGrid()
{
$result = new Grid($this, $this->dataset, 'project_timeline_detailDetailViewGrid2project');
$result->SetAllowDeleteSelected(false);
$result->SetUseFixedHeader(false);
$result->SetShowLineNumbers(false);
$result->SetHighlightRowAtHover(false);
$result->SetWidth('');
$this->AddFieldColumns($result);
return $result;
}
示例3: CreateGrid
protected function CreateGrid()
{
$result = new Grid($this, $this->dataset, 'ProjectViewDetailViewGrid2project');
$result->SetAllowDeleteSelected(false);
$result->SetUseFixedHeader(false);
$result->SetShowLineNumbers(false);
$result->SetHighlightRowAtHover(false);
$result->SetWidth('');
$this->AddFieldColumns($result);
//
// View column for project_name field
//
$column = new TextViewColumn('project_name', 'Project Name', $this->dataset);
$column->SetOrderable(false);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'ProjectViewDetailViewGrid2project_project_name_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for priority field
//
$column = new TextViewColumn('priority', 'Priority', $this->dataset);
$column->SetOrderable(false);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'ProjectViewDetailViewGrid2project_priority_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for project_lead field
//
$column = new TextViewColumn('project_lead', 'Project Lead', $this->dataset);
$column->SetOrderable(false);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'ProjectViewDetailViewGrid2project_project_lead_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for public_engagement field
//
$column = new TextViewColumn('public_engagement', 'Public Engagement', $this->dataset);
$column->SetOrderable(false);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'ProjectViewDetailViewGrid2project_public_engagement_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
return $result;
}
示例4: CreateGrid
protected function CreateGrid()
{
$result = new Grid($this, $this->dataset, 'facturas_abonosDetailViewGrid0facturas');
$result->SetAllowDeleteSelected(false);
$result->SetUseFixedHeader(false);
$result->SetShowLineNumbers(false);
$result->SetHighlightRowAtHover(false);
$result->SetWidth('');
$this->AddFieldColumns($result);
//
// View column for NombreCuenta field
//
$column = new TextViewColumn('NombreCuenta', 'NombreCuenta', $this->dataset);
$column->SetOrderable(false);
/* <inline edit column> */
//
// Edit column for NombreCuenta field
//
$editor = new TextAreaEdit('nombrecuenta_edit', 50, 8);
$editColumn = new CustomEditColumn('NombreCuenta', 'NombreCuenta', $editor, $this->dataset);
$validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
$editor->GetValidatorCollection()->AddValidator($validator);
$this->ApplyCommonColumnEditProperties($editColumn);
$column->SetEditOperationColumn($editColumn);
/* </inline edit column> */
/* <inline insert column> */
//
// Edit column for NombreCuenta field
//
$editor = new TextAreaEdit('nombrecuenta_edit', 50, 8);
$editColumn = new CustomEditColumn('NombreCuenta', 'NombreCuenta', $editor, $this->dataset);
$validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
$editor->GetValidatorCollection()->AddValidator($validator);
$this->ApplyCommonColumnEditProperties($editColumn);
$column->SetInsertOperationColumn($editColumn);
/* </inline insert column> */
$handler = new ShowTextBlobHandler($this->dataset, $this, 'NombreCuenta_handler', $column);
GetApplication()->RegisterHTTPHandler($handler);
return $result;
}
示例5: CreateGrid
protected function CreateGrid()
{
$result = new Grid($this, $this->dataset, 'timesheetDetailViewGrid0task');
$result->SetAllowDeleteSelected(false);
$result->SetInsertClientValidationScript($this->RenderText('if (fieldValues[\'date\'] > %CURRENT_DATE% INTERVAL 14 DAY )
{
errorInfo.SetMessage(\'Date Must be no older than 14 days\');
return false;
}'));
$result->SetUseFixedHeader(false);
$result->SetShowLineNumbers(false);
$result->SetHighlightRowAtHover(false);
$result->SetWidth('');
$result->OnCustomRenderTotal->AddListener('timesheetDetailViewGrid0task' . '_' . 'OnCustomRenderTotal', $this);
$result->BeforeInsertRecord->AddListener('timesheetDetailViewGrid0task' . '_' . 'BeforeInsertRecord', $this);
$this->AddFieldColumns($result);
//
// View column for name field
//
$column = new TextViewColumn('name', 'Name', $this->dataset);
$column->SetOrderable(false);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'timesheetDetailViewGrid0task_name_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for notes field
//
$column = new TextViewColumn('notes', 'Notes', $this->dataset);
$column->SetOrderable(false);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'timesheetDetailViewGrid0task_notes_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
return $result;
}
示例6: CreateGrid
protected function CreateGrid()
{
$result = new Grid($this, $this->dataset, 'projectDetailViewGrid0program');
$result->SetAllowDeleteSelected(false);
$result->SetUseFixedHeader(false);
$result->SetShowLineNumbers(false);
$result->SetHighlightRowAtHover(false);
$result->SetWidth('');
$this->AddFieldColumns($result);
//
// View column for project_name field
//
$column = new TextViewColumn('project_name', 'Project Name', $this->dataset);
$column->SetOrderable(false);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'projectDetailViewGrid0program_project_name_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for notes field
//
$column = new TextViewColumn('notes', 'Notes', $this->dataset);
$column->SetOrderable(false);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'projectDetailViewGrid0program_notes_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
return $result;
}
示例7: CreateGrid
protected function CreateGrid()
{
$result = new Grid($this, $this->dataset, 'objeto_planificacionDetailViewGrid1planificacion');
$result->SetAllowDeleteSelected(false);
$result->SetUseFixedHeader(false);
$result->SetShowLineNumbers(false);
$result->SetShowKeyColumnsImagesInHeader(false);
$result->SetViewMode(ViewMode::TABLE);
$result->setEnableRuntimeCustomization(true);
$result->SetHighlightRowAtHover(false);
$result->SetWidth('');
$this->AddFieldColumns($result);
//
// View column for ruta field
//
$column = new TextViewColumn('ruta', 'Ruta', $this->dataset);
$column->SetOrderable(false);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'objeto_planificacionDetailViewGrid1planificacion_ruta_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
return $result;
}
示例8: CreateGrid
protected function CreateGrid()
{
$result = new Grid($this, $this->dataset, 'kardexmercanciasDetailViewGrid0imv');
$result->SetAllowDeleteSelected(false);
$result->SetUseFixedHeader(false);
$result->SetShowLineNumbers(false);
$result->SetHighlightRowAtHover(false);
$result->SetWidth('');
$this->AddFieldColumns($result);
//
// View column for Detalle field
//
$column = new TextViewColumn('Detalle', 'Detalle', $this->dataset);
$column->SetOrderable(false);
/* <inline edit column> */
//
// Edit column for Detalle field
//
$editor = new TextAreaEdit('detalle_edit', 50, 8);
$editColumn = new CustomEditColumn('Detalle', 'Detalle', $editor, $this->dataset);
$editColumn->SetAllowSetToNull(true);
$this->ApplyCommonColumnEditProperties($editColumn);
$column->SetEditOperationColumn($editColumn);
/* </inline edit column> */
/* <inline insert column> */
//
// Edit column for Detalle field
//
$editor = new TextAreaEdit('detalle_edit', 50, 8);
$editColumn = new CustomEditColumn('Detalle', 'Detalle', $editor, $this->dataset);
$editColumn->SetAllowSetToNull(true);
$this->ApplyCommonColumnEditProperties($editColumn);
$column->SetInsertOperationColumn($editColumn);
/* </inline insert column> */
$handler = new ShowTextBlobHandler($this->dataset, $this, 'Detalle_handler', $column);
GetApplication()->RegisterHTTPHandler($handler);
return $result;
}
示例9: CreateGrid
protected function CreateGrid()
{
$result = new Grid($this, $this->dataset, 'act_movimientosDetailViewGrid0activos');
$result->SetAllowDeleteSelected(false);
$result->SetDefaultOrdering('idAct_Movimientos', otDescending);
$result->SetUseFixedHeader(false);
$result->SetShowLineNumbers(false);
$result->SetHighlightRowAtHover(false);
$result->SetWidth('');
$this->AddFieldColumns($result);
//
// View column for Entrega field
//
$column = new TextViewColumn('Entrega', 'Entrega', $this->dataset);
$column->SetOrderable(false);
/* <inline edit column> */
//
// Edit column for Entrega field
//
$editor = new TextEdit('entrega_edit');
$editor->SetSize(100);
$editor->SetMaxLength(100);
$editColumn = new CustomEditColumn('Entrega', 'Entrega', $editor, $this->dataset);
$validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
$editor->GetValidatorCollection()->AddValidator($validator);
$this->ApplyCommonColumnEditProperties($editColumn);
$column->SetEditOperationColumn($editColumn);
/* </inline edit column> */
/* <inline insert column> */
//
// Edit column for Entrega field
//
$editor = new TextEdit('entrega_edit');
$editor->SetSize(100);
$editor->SetMaxLength(100);
$editColumn = new CustomEditColumn('Entrega', 'Entrega', $editor, $this->dataset);
$validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
$editor->GetValidatorCollection()->AddValidator($validator);
$this->ApplyCommonColumnEditProperties($editColumn);
$column->SetInsertOperationColumn($editColumn);
/* </inline insert column> */
$handler = new ShowTextBlobHandler($this->dataset, $this, 'Entrega_handler', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for Recibe field
//
$column = new TextViewColumn('Recibe', 'Recibe', $this->dataset);
$column->SetOrderable(false);
/* <inline edit column> */
//
// Edit column for Recibe field
//
$editor = new TextEdit('recibe_edit');
$editor->SetSize(100);
$editor->SetMaxLength(100);
$editColumn = new CustomEditColumn('Recibe', 'Recibe', $editor, $this->dataset);
$validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
$editor->GetValidatorCollection()->AddValidator($validator);
$this->ApplyCommonColumnEditProperties($editColumn);
$column->SetEditOperationColumn($editColumn);
/* </inline edit column> */
/* <inline insert column> */
//
// Edit column for Recibe field
//
$editor = new TextEdit('recibe_edit');
$editor->SetSize(100);
$editor->SetMaxLength(100);
$editColumn = new CustomEditColumn('Recibe', 'Recibe', $editor, $this->dataset);
$validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
$editor->GetValidatorCollection()->AddValidator($validator);
$this->ApplyCommonColumnEditProperties($editColumn);
$column->SetInsertOperationColumn($editColumn);
/* </inline insert column> */
$handler = new ShowTextBlobHandler($this->dataset, $this, 'Recibe_handler', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for MotivoMovimiento field
//
$column = new TextViewColumn('MotivoMovimiento', 'MotivoMovimiento', $this->dataset);
$column->SetOrderable(false);
/* <inline edit column> */
//
// Edit column for MotivoMovimiento field
//
$editor = new TextAreaEdit('motivomovimiento_edit', 50, 8);
$editColumn = new CustomEditColumn('MotivoMovimiento', 'MotivoMovimiento', $editor, $this->dataset);
$validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
$editor->GetValidatorCollection()->AddValidator($validator);
$this->ApplyCommonColumnEditProperties($editColumn);
$column->SetEditOperationColumn($editColumn);
/* </inline edit column> */
/* <inline insert column> */
//
// Edit column for MotivoMovimiento field
//
$editor = new TextAreaEdit('motivomovimiento_edit', 50, 8);
$editColumn = new CustomEditColumn('MotivoMovimiento', 'MotivoMovimiento', $editor, $this->dataset);
$validator = new RequiredValidator(StringUtils::Format($this->GetLocalizerCaptions()->GetMessageString('RequiredValidationMessage'), $this->RenderText($editColumn->GetCaption())));
$editor->GetValidatorCollection()->AddValidator($validator);
//.........这里部分代码省略.........
示例10: CreateGrid
protected function CreateGrid()
{
$result = new Grid($this, $this->dataset, 'dbo_procesosDetailViewGrid1dbo_BaseDatos');
$result->SetAllowDeleteSelected(false);
$result->SetUseFixedHeader(false);
$result->SetShowLineNumbers(false);
$result->SetShowKeyColumnsImagesInHeader(false);
$result->SetViewMode(ViewMode::TABLE);
$result->setEnableRuntimeCustomization(false);
$result->setTableBordered(false);
$result->setTableCondensed(false);
$result->SetHighlightRowAtHover(false);
$result->SetWidth('');
$this->AddFieldColumns($result);
//
// View column for HostName field
//
$column = new TextViewColumn('HostName', 'HostName', $this->dataset);
$column->SetOrderable(false);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'dbo_procesosDetailViewGrid1dbo_BaseDatos_HostName_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for User field
//
$column = new TextViewColumn('User', 'User', $this->dataset);
$column->SetOrderable(false);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'dbo_procesosDetailViewGrid1dbo_BaseDatos_User_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for Database field
//
$column = new TextViewColumn('Database', 'Database', $this->dataset);
$column->SetOrderable(false);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'dbo_procesosDetailViewGrid1dbo_BaseDatos_Database_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
//
// View column for Application field
//
$column = new TextViewColumn('Application', 'Application', $this->dataset);
$column->SetOrderable(false);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'dbo_procesosDetailViewGrid1dbo_BaseDatos_Application_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
return $result;
}
示例11: CreateGrid
protected function CreateGrid()
{
$result = new Grid($this, $this->dataset, 'articoliDetailViewGrid0famiglie');
$result->SetAllowDeleteSelected(false);
$result->SetUseFixedHeader(false);
$result->SetShowLineNumbers(true);
$result->SetAllowOrdering(false);
$result->SetHighlightRowAtHover(false);
$result->SetWidth('');
$result->BeforeUpdateRecord->AddListener('articoliDetailViewGrid0famiglie' . '_' . 'BeforeUpdateRecord', $this);
$result->BeforeInsertRecord->AddListener('articoliDetailViewGrid0famiglie' . '_' . 'BeforeInsertRecord', $this);
$this->AddFieldColumns($result);
//
// View column for art-descart field
//
$column = new TextViewColumn('art-descart', 'Descrizione', $this->dataset);
$column->SetOrderable(false);
$handler = new ShowTextBlobHandler($this->dataset, $this, 'articoliDetailViewGrid0famiglie_art-descart_handler_list', $column);
GetApplication()->RegisterHTTPHandler($handler);
return $result;
}