Bug Report T301639
Visible to All Users

DockPanel - Setting the e.Cancel property to True in the Validating event handler still allows activating another panel in the same panel container

created 9 years ago

Hello,

On a form I have dockpanels manage by dockmanager.
In some case I want the block focuse on one panel
I try e.cancel=True on validating even. This is ok but not on tabbed panel ?

In my example lock is ok on dockPanel2 but not on dockpanel3 or dockpanel4

Do you have solution ?

Thanks
Eric

Comments (3)
DevExpress Support Team 9 years ago

    Hi,

    When I click the Lock Focus button, the tabbed container is activated. I cannot activate dockPanel2 since the panelContainer1.Validating event will occur, where you set the e.Valid property to false. In addition, I cannot click inner text boxes within dockPanel3 and dockPanel4 because of handling the dockPanel1.Validating event. I have attached a video to show this behavior. You said that this approach does not work for dockPanel3 and dockPanel4. Would you please clarify what you meant?

    In addition, I would like to note that if you wish to disable a particular panel, it makes sense to set the DockPanel.Enanbled property to false.

    I look forward to your response.

    EF EF
    Eric Feuillard 9 years ago

      Hi,
      Exact, but I want to 'stay' (focus) on dockpanel1, I dont want to autorize focus on other panel (dockPanel3, DockPanel4)

      DevExpress Support Team 9 years ago

        Hi,

        Now, I got your point. I will pass this behavior to our developers for investigation. We will update this thread once we have results.

        Answers approved by DevExpress Support

        created 9 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.

        Additional information:

        To properly validate panels, now handle the DockPanel.ControlContainer.Validating event.

          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.