Bug Report T540994
Visible to All Users

An inserted record is hidden until the bound dataset is reactivated if the data controller whose DataModeController.SmartRefresh property is set to True is linked to this dataset using a FireDAC connection

created 8 years ago

Hi,

when using cxGridTableView with

DatamodeController.Smartrefresh = true and
DataController.KeyFieldNames = ''

- editing a record through build-in navigator is very slow (three seconds to post record in table with 78.000 records).
- inserting a record through build-in navigator inserts a record and shows the record in the TableView and is very slow (three seconds to post insert in table with 78.000 records).

when using cxGridTableView with

DatamodeController.Smartrefresh = true and
DataController.KeyFieldNames = 'ID'

- editing the table works fine (almost imediatly).
- inserting a record through build-in navigator inserts a record, but TableView does not show record. Even after Navigator.refresh inserted record is not shown.

Why?

Best Regards,
Dietrich

Show previous comments (2)
DevExpress Support Team 8 years ago

    Thanks, Dietrich. I have reproduced this behavior with your sample project. This looks strange that the inserted row is created anyway (it appears after refresh). It seems that this is some kind of a FireDac specificity. In any case, I have forwarded this ticket to our developers for research.

    DW DW
    Dietrich Witzleben 8 years ago

      It seems not to be a FireDAC problem. SDAC has the same behavior.

      Also refresh doesn't work, only after close/open the inserted record is shown…

      DevExpress Support Team 8 years ago

        Hello Dietrich,

        We are planning to overcome this behavior soon. Meanwhile, you can set the field's DefaultExpression option to Null as a workaround.

        Answers approved by DevExpress Support

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