Bug Report T302939
Visible to All Users

PropertyGridControl - ValidatingEditor event is raised twice if tabbing out of an editor

created 9 years ago

Hello Devexpress,
We are seeing some breaking changes on RepositoryItemButtonEdit after upgrading to 15.1.4 from 14.1.7
Validating event on RepositoryItemButtonEdit is getting called twice if you type and tab out from control. I have attached sample Please try running it on 14.1.7 and 15.1.4.
Change Property 3 and tab out you will see two instance of xtraform for 15.1.4 where once instance in 14.1.7.

-Amit

Show previous comments (10)
DevExpress Support Team 9 years ago

    Hello Amit,

    Yes, I completely understand that the issue is critical for you. Our developers are already looking for a solution.
    Once it's ready, you are welcome to request the fix immediately and we will prepare an intermediate build containing the fix for you: How to request a hotfix.

    In the meantime, consider using the following code in the PropertyGridControl.OnActiveEditor_LostFocus method:

    C#
    protected override void OnActiveEditor_LostFocus(object sender, EventArgs e) { if(ContainerHelper.InternalFocusLock != 0 || (ActiveEditor != null && ActiveEditor.EditorContainsFocus) || ActiveEditor is PopupContainerEdit) return; OnLostFocus(e); PostEditor(IsClosingEditor ? false : true); }

    I've tested this code with your project and it appears to work correctly. Please try it and let me know your results.

      Just wondering this is not final fix as we are still getting some issues with this suggestion.

      DevExpress Support Team 9 years ago

        Hello Amit,

        This workaround is just a temporary solution to this issue while you are waiting for a hotfix. It's not a part of our internal source code and you need to delete this overridden method from your code once the hotfix is ready.

        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.

          Comments (2)
          NC NC
          Narendra Chavda 9 years ago

            Hello,
            Can this be patched to v15.1.7?
            When is v15.1.8 being released?
            Thanks,
            Narendra Chavda

            DevExpress Support Team 9 years ago

              Hello Narendra,

              We have plans to release version 15.1.8 soon, but at the moment we cannot give you a precise time frame. If you do not want to wait for the next build release, you are welcome to request a fix immediately. Simply click the "Request Fix" link located in the report's status panel as described in the following Knowledge Base article, and we will prepare an intermediate build for you:

              How to request a hotfix

              Let us know if you have additional questions.

              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.