DevExpress XAF
费玉清
编程无难事,只要有心人
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
实现菜单选择项执行Action
Add an Action with Option Selection原创 2014-04-18 07:50:50 · 653 阅读 · 0 评论 -
设置特定List View 的过滤器
Activate a Filter Action原创 2014-04-24 10:47:53 · 951 阅读 · 0 评论 -
添加外部字段的 Editor 到Detail View
Add an Editor to a Detail View原创 2014-04-24 09:42:05 · 546 阅读 · 0 评论 -
添加项目到New Action
Add an Item to the New Action原创 2014-04-24 08:26:17 · 533 阅读 · 0 评论 -
在同一页面上显示List View和Detail View
Display a Detail View Together With a List View原创 2014-04-24 09:49:21 · 888 阅读 · 0 评论 -
设置Action执行的验证条件
Implement Property Value Validation in the Application Model原创 2014-04-24 08:36:09 · 649 阅读 · 0 评论 -
添加导航菜单项目
Add an Item to the Navigation Control原创 2014-04-24 08:22:23 · 765 阅读 · 0 评论 -
设置lookupeditor
Filter Lookup Editor Data Source Set the Many-to-Many relationship between the Position and Department classes.原创 2014-04-24 07:52:01 · 756 阅读 · 0 评论 -
设置Editor关联更改
Make a Property Calculable原创 2014-04-24 07:20:25 · 641 阅读 · 0 评论 -
设置业务对象的窗口标题
When setting the object caption format you can explicitly specify the format string. For instance, {0:ArticleNo:0000,00#}, or {0:PeriodDateValue:MM.yyyy}.原创 2014-04-18 13:48:59 · 550 阅读 · 0 评论 -
自定义业务对象图标
Assign a Custom Image原创 2014-04-18 19:28:26 · 527 阅读 · 0 评论 -
XAF添加Action到菜单 用于过滤
Add a new View Controller to the MySolution.Module project, as described in the Add a Simple Action lesson. Name it PopupNotesController. Right-click the MySolution.Module | Controllers | PopupNot原创 2014-04-17 09:04:12 · 953 阅读 · 0 评论 -
设置具有关联条件的属性
[DefaultClassOptions] public class Contact : Person { //... [DataSourceProperty("Department.Contacts",DataSourcePropertyIsNullMode.SelectAll)] [DataSourceCriteria("Position.Title = 'Manage原创 2014-04-17 14:14:50 · 689 阅读 · 0 评论 -
将Action添加到菜单的Edit栏
Place an Action in a Different Location原创 2014-04-18 10:53:26 · 711 阅读 · 0 评论 -
操作List View(添加tooltip到List View的列头)
Since you are going to access the settings of the List View's grid control, you need to ensure it has already been created. That's why you need to subscribe to the Controller's ViewControlsCreated ev原创 2014-04-18 09:49:39 · 876 阅读 · 0 评论 -
重写Controller的OnActivated方法(不显示指定的Save Ation)
Deactivate an Action原创 2014-04-18 08:50:57 · 1444 阅读 · 0 评论 -
实现弹出窗口选择内容
Add an Action that Displays a Pop-up Window using DevExpress.Persistent.BaseImpl; // ... private void ShowNotesAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventA原创 2014-04-18 07:43:48 · 961 阅读 · 0 评论 -
执行Action前显示确认窗口
Specify Action Settings Navigate to the Misc category. By default, the Tooltip property is set to the Caption property's value. Set the "Clear the current object's fields" value instead. Set t原创 2014-04-18 11:16:42 · 690 阅读 · 0 评论 -
操作Editor
using DevExpress.ExpressApp.Web.Editors; using DevExpress.Web.ASPxEditors; using DevExpress.ExpressApp.Utils; // ... private void WebNullTextEditorController_Activated(object sender, EventArgs e) {原创 2014-04-18 09:31:12 · 610 阅读 · 0 评论 -
重写controller的CloseAndSave方法(点击关闭时关闭整个Detail View)
protected override void SaveAndClose(SimpleActionExecuteEventArgs e) { View view = View; base.SaveAndClose(e); if ((view != null) && (((DetailView)view).ObjectTypeInfo.Type ==原创 2014-04-18 08:38:25 · 1010 阅读 · 0 评论 -
通过属性添加Action
[DefaultClassOptions] [ModelDefault("Caption", "Task")] public class DemoTask : Task { //... [Action(ToolTip = "Postpone the task to the next day")] public void Postpone() { if(Due原创 2014-04-17 14:24:22 · 536 阅读 · 0 评论 -
检查输入是否为空并提示
Drag the ValidationModule item from this page to the Designer's Required Modules section.原创 2014-04-17 14:20:13 · 660 阅读 · 0 评论 -
设置一对多关系
C# CopyCode imageCopy Code [DefaultClassOptions] public class Contact : Person { //... private Department department; [Association("Department-Contacts", typeof(Department))] public D原创 2014-04-17 11:12:10 · 744 阅读 · 0 评论 -
新增或修改时 设置显示的默认值
public class DemoTask : Task { // ... private Priority priority; public Priority Priority { get { return priority; } set { SetPropertyValue("Priority", ref prio原创 2014-04-17 13:44:17 · 653 阅读 · 0 评论
分享