学习022-07 How to: Display Appointments in a Data Table (Grid List Editor)(如何:在数据表(网格列表编辑器)中显示预约)

How to: Display Appointments in a Data Table (Grid List Editor)(如何:在数据表(网格列表编辑器)中显示预约)

This article explains how display events in a regular List View grid in XAF ASP.NET Core Blazor and Windows Forms applications.
本文介绍如何在XAF ASP.NET Core Blazor和Windows Forms应用程序的常规列表视图网格中显示事件。

Note
For the purposes of this article, you can use the MainDemo application installed as a part of the XAF package. The default location of the application is %PUBLIC%\Documents\DevExpress Demos 24.1\Components\XAF.

在本文中,您可以使用作为XAF包一部分安装的MainDemo应用程序。该应用程序的默认位置是%PUBLIC%\Documents\DevExpress Demos 24.1\Components\XAF。

The MainDemo application uses DevExpress.ExpressApp.Scheduler.Blazor.Editors.SchedulerListEditor and DevExpress.ExpressApp.Scheduler.Win.SchedulerListEditor to display Scheduler in UI. The image below shows the current Scheduler List Editor:
MainDemo应用程序使用DevExpress.ExpressApp.Scheduler.Blazor.Editors.SchedulerListEditor和DevExpress.ExpressApp.Scheduler.Win.SchedulerListEditor在UI中显示调度器。下图显示了当前的调度器列表编辑器:

ASP.NET Core Blazor
在这里插入图片描述

Windows Forms
在这里插入图片描述

The instructions below explain how to change the List Editor type.
以下说明介绍如何更改列表编辑器类型。

1.In the Solution Explorer, expand the MainDemo.Blazor.Server or MainDemo.Win project and double-click the Model.xafml file to open it in the Model Editor.
在解决方案资源管理器中,展开MainDemo.Blazor.Server或MainDemo.Win项目,双击Model.xafml文件以在模型编辑器中打开它。

2.*Depending on the ORM tool used in your application, navigate to one of the following nodes:*根据应用程序中使用的ORM工具,导航到以下节点之一:

  • Views | DevExpress.Persistent.BaseImpl.EF | Event | Event_ListView for Entity Framework Core.
    对于Entity Framework Core,导航到Views | DevExpress.Persistent.BaseImpl.EF | Event | Event_ListView。

  • Views | DevExpress.Persistent.BaseImpl | Event | Event_ListView for XPO.
    对于XPO,导航到Views | DevExpress.Persistent.BaseImpl | Event | Event_ListView。

3.Set the IModelListView.EditorType property to a regular List Editor value:
将IModelListView.EditorType属性设置为常规列表编辑器值:

  • DevExpress.ExpressApp.Blazor.Editors.DxGridListEditor for ASP.NET Core Blazor.
    对于ASP.NET Core Blazor,设置为DevExpress.ExpressApp.Blazor.Editors.DxGridListEditor。

  • DevExpress.ExpressApp.Win.Editors.GridListEditor for Windows Forms.
    对于Windows Forms,设置为DevExpress.ExpressApp.Win.Editors.GridListEditor。

4.Save the changes and run the application. When you invoke the Calendar List View, it should look like this:
保存更改并运行应用程序。当您调用日历列表视图时,它应如下所示:

ASP.NET Core Blazor
在这里插入图片描述

Windows Forms
在这里插入图片描述

Tip
You can add an Action that allows users to switch between different List Editors. For more information, refer to the following topic: View Variants Module.

您可以添加一个动作,允许用户在不同的列表编辑器之间切换。有关更多信息,请参阅以下主题:视图变体模块。

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

汤姆•猫

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值