Ticket Q412006
Visible to All Users

Prevent PopupMenu from closing

created 13 years ago

Hello

I do have a DevExpress.XtraBars.PopupMenu with some items.

Depending on the item chosen by the user, I would like to keep the popup open (prevent closing).

Is this possible? Is there an event where I can cancel the closing of a popup?

Best regards
Stefan

Comments (2)
DevExpress Support Team 13 years ago

    Thank you for contacting us.
    Our PopupMenu does not provide this functionality. Would you please describe your scenario in greater detail, so that we can better understand it and find an appropriate solution?
    I'm looking forward to your feedback.

    SV SV
    Stefan Vandenbrouck 13 years ago

      Hi Pavel
      Thanks for your answer.
      The scenario is as follows:
      - I have a pop-up with 4 entries
      - Entry number one is a date selector
      - Entries number 2 - 4 call actions using this selected date (from entry 1)
      What I want to achieve:

      1. I want to open the popup and select a date in entry 1. After this date selection the popup shall NOT CLOSE.
      2. Select an action from entry 2 - 4, using this selected date
        Problem:
        The problem now is, that after selecting a date, the popup closes. The user has to open the popup again and then select an action from entry 2,3 or 4.
        What I need:
        I now need the possibility to tell the popup not to close after the selection of the date. Something like a cancel parameter after the ClickItem-Event of an entry. Or something like that.
        I'm looking forward to your answer.
        Regards
        Stefan

      Answers

      created 13 years ago (modified 13 years ago)

      To achieve this goal, it is necessary to create a BarManager descendant and override its logic of closing a popup. I have created a small project to illustrate this.

        Show previous comments (1)
        DevExpress Support Team 13 years ago

          I have attached a VB project.

          SV SV
          Stefan Vandenbrouck 13 years ago

            Hi Gosha
            Thanks very much for the example. But I still have a problem:
            Because my project still uses DevExpress-Components 10.2. In the code below, it tells me, that 'Tag' is not a member of "DevExpress.XtraBars.Bar". Is there a possibility to do your example with 10.2, too? Or do I have to take the project to version 12?
            Best regards
            Stefan
             If (Not CBool(Manager.Bars(0).Tag)) Then
                        Manager.Bars(0).Tag = True
                        Return
                    End If

            DevExpress Support Team 13 years ago

              Thank you for your response. I have modified my project to use version 10.2.

              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.