Bug Report T146426
Visible to All Users

TcxDBTreeList - It is impossible add new records to the dataset from the OnFocusedNodeChanged event handler

created 11 years ago (modified 11 years ago)

Recently, my old projects (use devexpress vcl) upgrade from 13.1.3 to 14.1.3. (Delphi XE)
I found a strange problem, the same code, OnFocusedNodeChanged events don't work properly.

I modified the data in the OnFocusedNodeChanged events, but cxDBTreeList won't refresh immediately and load the new data.

Please compile the example in the attachment, respectively using the Ver 13.1.3 & Ver 14.1.3 compilation, there will be two different results.

I compared the your source code, in cxDBTL.pas unit.
Ver 13.1.3:

Delphi
procedure TcxTreeListDataLink.LayoutChanged; begin if TreeList.DataBusy then TreeList.RefreshTree else DataSetChanged; end;

Ver 14.1.3:

Delphi
procedure TcxTreeListDataLink.LayoutChanged; begin DataSetChanged; end;
Comments (1)
DevExpress Support Team 11 years ago

    Hello Justin,

    I've reproduced both behaviors. I'm forwarding this thread to our developers for further processing and research.

    Answers approved by DevExpress Support

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

      Show previous comments (6)

        Hello Mikhail,
        I reinstall the controls (VCL 14.1.14) to Delphi XE and XE5.
        XE: the bug has been fixed.
        XE5: the error still exist.

          Please compile the demo project with Delphi XE5. you can reproduce this behavior.

          DevExpress Support Team 11 years ago

            OK. We will research this behavior and get back to you once we have any results or need additional information. Thank you for your patience.

            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.