Current filter:
                                You should refresh the page.
                                  • Hi,
                                    I have two simple actions which each of them have individual set of property especially for different target object setting.  This allow enable / disable of the button according to different criteria.

                                    How can i integrated it and behave like to single choice action which i will put all the action like a drop down list. Please help. thx

                                1 Solution

                                Creation Date Importance Sort by

                                Hello Horace,

                                To show a drop-down menu with multiple actions, use the WebActionContainer.IsDropDown option. This option can be set in the page template. For example, to customize the main window, create a custom Default Vertical Template Content and add a new WebActionContainer item to its main toolbar as shown below:

                                <cc3:XafUpdatePanel ID="UPTB" runat="server"> <cc2:ActionContainerHolder CssClass="ACH MainToolbar" runat="server" ID="TB" ContainerStyle="ToolBar" Orientation="Horizontal"> ... <ActionContainers> ... <cc2:WebActionContainer ContainerId="MainMenuDropDown" IsDropDown="true" DefaultItemCaption="Action" /> .... </ActionContainers> </cc2:ActionContainerHolder> </cc3:XafUpdatePanel>

                                Then, place your actions to this container, as described in the Place an Action in a Different Location topic.
                                Other options available for the IsDropDown mode are described in the In the ASP.NET template markup section of the Action Containers topic.

                                Also, the IsDropDown option of an existing Action Container can be set in code without creating a custom template: New Web.UI - how to hide Save and SaveAndNew actions, but keep SaveAndClose

                                In addition, note that you can manage SingleChoiceAction's items availability using the ChoiceActionItem.Active and ChoiceActionItem.Enabled properties. To learn how to change them depending on the current object, refer to the How to: Access Objects Selected in the Current View topic.

                                Show all comments
                                • Horace Ho 1 10.31.2017

                                  thx. i can get the add new action button in place as dropdown list.

                                  by the way, how to rename or hide some of the action button as in attached.
                                  Pls give me some hints

                                • Andrey K (DevExpress Support) 11.01.2017

                                  You are welcome. As for your last question, I've created a separate ticket on your behalf (T571562: How to rename or hide some of the action button). It has been placed in our processing queue and will be answered shortly.


                                • Horace Ho 1 12.20.2018

                                  I have upgraded to v18.2.  It seems that if the dropdown menu only has one item, that one item cannot be shown up.
                                  Please check attached for detail. thx

                                • Anatol (DevExpress Support) 12.21.2018

                                  Hello Horace,

                                  You are right - in the current version, this dropdown is not shown for one item. We have planned this behavior's improvement in the context of the following ticket: Security - The My Details action is not available in the My Account menu with AuthenticationActiveDirectory. Please add it to your Favorites to be notified of its changes.
                                  As a temporary solution, you can clear your WebActionContainer's DefaultItemCaption property and (optionally) set its AutoChangeDefaultAction property to true. In this case, the Exclude Invoice caption will be displayed in this menu item, just like in the Save menu.

                                • Horace Ho 1 03.21.2019

                                  I have built a dropdown menu container for some actions button using DefaulttemplateContent as above.  It was showing ok for listview.  However, if for nested listview, the dropdown menu cannot be shown.  What should i do so that the nested listview in the master detailview will have the dropdown menu action button also?
                                  Pls check attached and support. thx

                                • Gosha (DevExpress Support) 03.21.2019

                                  Hi Horace,

                                  Nested List Views use the Nested Frame Control template. It's necessary to create a custom NestedFrameControl template and add your custom action container to it. I suggest you review the Templates article that lists what templates are used and where.