Bug Report T406741
Visible to All Users

The BeforeFocusNode and FocusedNodeChanged events fire when deleting the last data source entry even if the focused node is not changed

created 9 years ago

Hello,

I've noted a strange behavior in "BeforeFocusNode" and "FocusedNodeChanged" events. I've attached a project to show you which one.

Please follow these steps with the attached project:

1- Press "Delete subitem1" button: This button will remove Subitem1 from the treelist.
Note the node that is focused is Subitem2. We're not deleting the focused node.
This deletion will fire events "BeforeFocusNode" and "FocusedNodeChanged" two times each one.

2- Press "Refresh list with Subitem3".
Now the treelist is loaded with one extra node: Subitem3.
Subitem3 is a child of Item2. Any relation with Subitem1.
Focused node is Subitem2.
Please, press "Delete Subitem1".
And now any event is fired. Why??!!

I suppose correct behavior is the second one of course, but why in the first case events are fired?

Thanks in advance!

Comments (1)
DevExpress Support Team 9 years ago

    Hi David,

    I have managed to reproduce this behavior. I am forwarding this issue to our developers for further processing. You will receive an automatic message once the status of this ticket is changed.

    Answers approved by DevExpress Support

    created 7 years ago (modified 7 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.