當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Grid::SetWidth方法代碼示例

本文整理匯總了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;
 }
開發者ID:eroncalli,項目名稱:atig,代碼行數:12,代碼來源:offerte.php

示例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;
 }
開發者ID:CivicInfoBC,項目名稱:workplan.gov_ver_1.19,代碼行數:11,代碼來源:project.php

示例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;
 }
開發者ID:BCDevExchange,項目名稱:WORKPLAN,代碼行數:39,代碼來源:project.php

示例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;
 }
開發者ID:Kenovix,項目名稱:san-miguel,代碼行數:40,代碼來源:facturas.php

示例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;
 }
開發者ID:BCDevExchange,項目名稱:WORKPLAN,代碼行數:32,代碼來源:task.php

示例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;
 }
開發者ID:CivicInfoBC,項目名稱:workplan.gov_ver_1.19,代碼行數:25,代碼來源:program.php

示例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;
 }
開發者ID:outsourcinggithub,項目名稱:outsourcing,代碼行數:21,代碼來源:planificacion.php

示例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;
 }
開發者ID:Kenovix,項目名稱:san-miguel,代碼行數:38,代碼來源:imv.php

示例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);
//.........這裏部分代碼省略.........
開發者ID:Kenovix,項目名稱:san-miguel,代碼行數:101,代碼來源:activos.php

示例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;
 }
開發者ID:jorgedison,項目名稱:Audit-Database,代碼行數:44,代碼來源:Base+de+Datos.php

示例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;
 }
開發者ID:eroncalli,項目名稱:atig,代碼行數:21,代碼來源:famiglie.php


注:本文中的Grid::SetWidth方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。