Add an Editor to a Detail View 将编辑器添加到详细信息视图

In this lesson, you will learn how to add an editor to a Detail View. For this purpose, the Department.Office property will be added to the Contact Detail View. You will also learn how to change the layout of a Detail View‘s editors.

在本课中,您将学习如何将编辑器添加到详细信息视图。为此,部门.Office 属性将添加到"联系人详细信息视图"。",因此,该部门将添加到"联系人详细信息视图"中。您还将学习如何更改详细信息视图编辑器的布局。

Note 注意
Before proceeding, take a moment to review the Place an Action in a Different Location lesson.

在继续之前,请花点时间复习"将操作置于不同位置"课程。

  • Invoke the Model Editor for the MySolution.Module project. Navigate to the Views | MySolution.Module.BusinessObjects node. Expand the Contact_DetailView child node. It contains the Items and Layout child nodes. To add an editor to a Contact Detail View, right-click the Items node and select Add | Property Editor.
  • 调用 MySolution.模块项目的模型编辑器。导航到视图 |MySolution.模块.业务对象节点。展开Contact_DetailView子节点。它包含"项"和"布局"子节点。要将编辑器添加到联系人详细信息视图,请右键单击"项目"节点并选择"添加 |属性编辑器。

  • For the new node, set the PropertyName and Id properties to "Department.Office".
  • 对于新节点,将属性名和 ID 属性设置为"部门.Office"。。

  • To display the new editor in a Contact Detail View, find the Layout node located under the Contact_DetailView node, expand its Layout | Main | SimpleEditors | Contact child node, right-click Contact_col2 and select Add | LayoutViewItem. For the new node, set the ViewItem and ID properties to "Department.Office".
  • 要在"联系人详细信息"视图中显示新编辑器,请查找位于Contact_DetailView节点下的布局节点,展开其布局 |主菜 |简单编辑器 |联系子节点,右键单击Contact_col2并选择"添加 |布局视图项。对于新节点,将 ViewItem 和 ID 属性设置为"部门.Office"。。

    Generally, you can place the editor in any layout group within the Layout node.

  • 通常,您可以将编辑器放在布局节点中的任何布局组中。
  • You can see how the new editor will be displayed in a Contact Detail View by selecting the Layout node. The property list to the right will be replaced with a design surface that imitates the Contact Detail View. You can drag the new editor to the required location if the current one does not satisfy your needs. For this purpose, right-click an empty space and choose Customize Layout. The Customization Form will be invoked. Now, you can drag items to the required locations. When finished, close the form. For details, refer to the Customize the View Items Layout topic.
  • 通过选择"布局"节点,您可以查看新编辑器在"联系人详细信息"视图中的显示方式。右侧的属性列表将替换为模仿"联系人详细信息视图"的设计图面。如果当前编辑器不能满足您的需要,则可以将新编辑器拖动到所需位置。为此,右键单击空白区域并选择"自定义布局"。将调用自定义窗体。现在,您可以将项目拖动到所需的位置。完成后,关闭窗体。有关详细信息,请参阅自定义视图项目布局主题。

To learn more about the Customization Form, the Layout Tree View tab and its context menu, refer to the Default Runtime Customization topic.

Run the WinForms or ASP.NET application and invoke a Contact Detail View. Notice the Office editor is located together with the Department editor, Position editor, etc.

要了解有关自定义窗体、布局树视图选项卡及其上下文菜单的详细信息,请参阅默认运行时自定义主题。
运行 WinForms 或ASP.NET应用程序并调用联系人详细信息视图。请注意,Office 编辑器与部门编辑器、职位编辑器等一起位于一起。

You can see the changes made in this lesson in the Model Editor invoked for the Model.DesignedDiffs.xafml file located in the Main Demo | MainDemo.Module project. The MainDemo application is installed in %PUBLIC%\Documents\DevExpress Demos 19.2\Components\eXpressApp Framework\MainDemo by default. The ASP.NET version is available online at http://demos.devexpress.com/XAF/MainDemo/

您可以在本课中为模型调用的模型编辑器中所做的更改。主演示模块项目。主演示应用程序安装在%PUBLIC%\Documents\DevExpress Demos 19.2\Components\eXpressApp Framework\MainDemo by default. The ASP.NET version is available online at http://demos.devexpress.com/XAF/MainDemo/

.

Note
Alternatively, you can customize the Contact Detail View layout at runtime, and then merge these customizations into the MySolution.Module project. Refer to the How to: Merge End-User Customizations into the XAF Solution topic for details.

原文地址:https://www.cnblogs.com/foreachlife/p/Add-an-Editor-to-a-Detail-View.html

时间: 2024-10-08 19:42:48

Add an Editor to a Detail View 将编辑器添加到详细信息视图的相关文章

How to add taxonomy element to a summary view?

[re: Orchard CMS] This caused me scratching my head for days and now I can even feel it's bleeding. The answer however is the simplest. Because it's not obviously indicated anywhere, I was anticipating the layout only works for the detail view of A c

Fragment(10)FragmentTransaction.add(id,Fragment)报错: No view found for id 0x****** for fragment

1.错误信息: 06-26 22:54:28.509: E/AndroidRuntime(20363): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.exe.custommenu/com.exe.custommenu.MainActivity}: java.lang.IllegalArgumentException: No view found for id 0xaabbcc for fragmen

[转]How to add a script in a partial view in MVC4?

本文转自:https://stackoverflow.com/questions/14114084/how-to-add-a-script-in-a-partial-view-in-mvc4 问题: This is the code which I have in my partial view @model Contoso.MvcApplication.Models.Exercises.AbsoluteArithmetic @using(Html.BeginForm()) { <div> &

自定义View来显示多条支付信息

在做项目开发时,有个这样的需求: 就中间的那个支付明细,要求点击时能收缩,这个功能非常简单,从界面来看,用LinearLayout或TableLayout来做,没啥难度,但是如果是用布局来写的话,那么要写的可多了,这只是列出了几种支付方式,有可能还有更多的,也有可能没这么多,那么用这种方式来写,代码非常啰嗦,维护起来更麻烦,针对这种情况,我采用的是自定义控件来写,动态画出来这些文本,详细代码: package com.example.viewtest; import java.util.Link

xamarin.android 给View控件 添加数字提醒效果-BadgeView

本文代码从java项目移植到.net项目   java开源项目:https://github.com/jgilfelt/android-viewbadger using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; us

为界面添加水印 ---添加到View上,添加到cell上

        需求: 在某个视图中添加对应的水印,和在某个tableView中给每一行均添加水印,并且水印均是动态生成的,以当前用户名作为水印的提示文字.        针对上述需求,即给视图添加一个水印,这个水印也不是固定的图片而是针对不同的用户展示不同的水印提示文字.则实现方法可以是绘制一张图片,并且这张图片的内容是由用户的名字填充.如果是给整个View添加水印,则直接将该图片加载到View上.如果是在每一个tableView上添加水印而且水印要跟随着界面的滑动而滑动,这就需要将水印视图添

跟我学ASP.NET MVC之七:SportsStrore购物车

摘要: SportsStore应用程序进展很顺利,但是我不能销售产品直到设计了一个购物车.在这篇文章里,我就将创建一个购物车. 在目录下的每个产品旁边添加一个添加到购物车按钮.点击这个按钮将显示客户到目前为止选择的产品摘要,包含总价格.这时候,用户可以点击继续购物按钮返回产品目录,或者点击现在下单按钮完成订单结束购物过程. 定义Cart实体类 在SportsStore.Domain工程的Entities文件夹下,创建代码文件Cart.cs. 1 using System.Collections.

第一个Django应用程序_part3

一.概述 此文延续第一个Django应用程序part2. 官方文档:https://docs.djangoproject.com/en/1.11/intro/tutorial03/ view是Django应用程序中的“类”网页,它通常使用一个特定的函数提供服务,并且具有一个特定的模版.例如在博客应用程序中,kennel有以下视图: 博客首页-显示最新的几个条目. 博客“详细”页面 --单篇博客的固定链接页面. 基于年份的存档页面-显示给定年份的所有月份. 基于月份的存档页面-显示所有日期与给定月

Customize the View Items Layout 自定义视图项目布局

In this lesson, you will learn how to customize the default editor layout in a Detail View. For this purpose, the Contact Detail View will be used. 在本课中,您将学习如何在详细视图中自定义默认编辑器布局.为此,将使用"联系人详细信息"视图. Note 注意 Before proceeding, take a moment to review