Ticket T997183
Visible to All Users

Create new action container in xaf blazor application

created 4 years ago

I'm porting my XAF ASP.Net application to XAF Blazor and I would like to create a new drop down action container like the one I can create in XAF ASP.Net application with template customization.

HTML
<xaf:WebActionContainer ContainerId="PrgDigActionsContainer" IsDropDown="true" DefaultItemCaption="Azioni" DefaultItemImageName="Action_SingleChoiceAction" AutoChangeDefaultAction="true" />

How can I do that ?

Comments (1)
DevExpress Support Team 3 years ago

    Hello,

    In v21.2, we introduced the capability to customize or create XAF Blazor Application Templates. Please refer to the following documentation:

    Feel free to contact us if you need any additional assistance.

    Thanks,
    Stanley

    Answers approved by DevExpress Support

    created 4 years ago (modified 4 months ago)

    Updated2:

    In v24.2+, you can leave the container without a default action and set a custom caption and image for the container instead. These captions and images will always be displayed regardless of which action is currently selected. In this instance, all actions added to the container are added to the drop-down menu.

    Code
    Toolbar.AddActionContainer("DropdownContainer", isDropDown: true, caption: "Actions", imageName: "Action_Search");

    ============================

    Hi Massimo,

    Updated:

    In v23.1, we introduced the isDropDown option for action containers. You can use it in your custom templates to group actions inside a drop-down, just like the Save and New/Save and Close drop-down in the default application template:
    Clipboard-File-1.png
    Learn more about creating custom templates in the following help topic:
    How To: Create a Custom Blazor Application Template | eXpressApp Framework | DevExpress Documentation

    Old answer:

    XAF Blazor does not support template customization and doesn't allow adding custom action containers. We will consider adding this functionality in the future.

      Comments (2)
      M M
      Martin Praxmarer - DevExpress MVP 2 years ago

        ps: image does not work

        Andrey K (DevExpress Support) 4 months ago

          Hello,

          In previous versions, action containers with drop-down menus required a default action, which was displayed inside the container. In this instance, when the drop-down menu was opened, it displayed all actions except the default one. Based on user feedback, we have changed this behavior in this release.

          In v24.2+, you can leave the container without a default action and set a custom caption and image for the container instead. These captions and images will always be displayed regardless of which action is currently selected. In this instance, all actions added to the container are added to the drop-down menu.

          Code
          Toolbar.AddActionContainer("DropdownContainer", isDropDown: true, caption: "Actions", imageName: "Action_Search");

          Thanks,
          Andrey

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.