DevExpress-Examples / xaf-how-to-create-a-custom-action-with-a-custom-control-in-xaf-aspnet-application

How to extend our built-in Actions to be able to use a custom control for a specific task

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XAF - How to create a custom Action with a custom control in XAF ASP.NET WebForms application

Sometimes, it is necessary to extend our built-in Actions to be able to use a custom control for a specific task. For example, add two DateTime editors to accept a data range instead of creating two separate ParametrizedActions.

image

Implementation Details

Inherit the ProcessActionContainerHolderController and override the OnCreateCustomMenuActionItem method and return a custom TemplatedMenuActionItem, that defines the Action's control. See the MyProcessActionContainerHolderController.xx class code for additional details.

Files to Review

More Examples

About

How to extend our built-in Actions to be able to use a custom control for a specific task

License:Other


Languages

Language:Visual Basic .NET 40.3%Language:C# 36.6%Language:ASP.NET 23.1%