Ticket Q452392
Visible to All Users

Custom action container

created 12 years ago

Hi,

how to show a custom Action container?

I created an action then I created new ActionContainer in Model Editor and move there that action. Next I changed action Category property to ActionContainer ID, but new Category didnt show.

Thank you,

Jozef

Answers approved by DevExpress Support

created 12 years ago (modified 12 years ago)

Hi Josef,
Thank you for your question. Adding an ActionContainer node in the ModelEditor is not enough. Actions are displayed via action container controls contained in the template, and each action container controls has a list of action categories visible in it. If you created a new category, you need to create a custom template and either add a new action container control for this category or add your category to the list of categories of an existing action container control. Please refer to the Templates Customization article for more information.

    Comments (3)

      Hi,
      Michael, could you please show how to register custom category to an existing action container?
      I tried handling Frame.ProcessActionContainer as well as some other ways, but couldn't find a way to do this.
      Thanks,
      Mario

      DevExpress Support Team 12 years ago

        @Mario: This event is raised for every IActionContainer instance, which represents exactly one category. You cannot add new categories within it. To add a new category, you have to create a new custom template and customize it. The article I mentioned explains how to do this in general. In a WinForms template, add ActionContainerBarItem or ActionContainerMenuBarItem to a bar. In a Web template, either add a new ActionContainerHolder control to the markup or add your category to the Categories property of an existing control.

          Thanks for clarification, I see now that I understood your initial answer incorrectly.

          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.