Bug Report T221402
Visible to All Users

RemoveBarItemAndLinkAction removes items that were added after adding the action

created 10 years ago

Hello,

I added a sample. This works in 14.1. In 14.2 the Added SubMenuItems below "Zeilenhöhe" are not shown anymore. It works when the RemoveBarItemAndLinkAction is outcommented.

Is there something changed how the "e.Customizations" are processed?

Thank you very much,
Tobias

Comments (3)
Andrey K (DevExpress Support) 10 years ago

    Hello,

    Please clarify what steps I need to perform to see the problematic behavior? As at first sight, your project works as expected on my side. Refer to the attached screencast.

    Thanks,
    Andrey

      Hello,
      sorry, I sent you the working Version. Just uncomment the following lines like below:
                 // It works with the following 6 lines Out-Commented
                 e.Customizations.Add(new RemoveBarItemAndLinkAction() { ItemName = "ZeilenHoeheSeparator" });
                 e.Customizations.Add(new RemoveBarItemAndLinkAction() { ItemName = "ZeilenHoehe" });
                 e.Customizations.Add(new RemoveBarItemAndLinkAction() { ItemName = "ZeilenHoeheAuto" });
                 e.Customizations.Add(new RemoveBarItemAndLinkAction() { ItemName = "ZeilenHoehe1" });
                 e.Customizations.Add(new RemoveBarItemAndLinkAction() { ItemName = "ZeilenHoehe2" });
                 e.Customizations.Add(new RemoveBarItemAndLinkAction() { ItemName = "ZeilenHoehe3" });
      Thank you very much,
      Tobias

      DevExpress Support Team 10 years ago

        Thank you for your clarification. I have discussed this issue with our developers and we concluded that this behavior is incorrect. I will forward this ticket to our R&D team, and we will contact you as soon as we get any results.

        Also, note that in version 14.2, items defined inside other bar items (like ZeilenHoeheAuto, ZeilenHoehe1, ZeilenHoehe2, ZeilenHoehe3) are not added to the BarManager. Thus, there's no need in deleting them using the RemoveBarItemAndLinkAction class.

        Answers approved by DevExpress Support

        created 10 years ago

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          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.