Bug Report T304800
Visible to All Users

DataBarFormatCondition cannot be initialized using the BeginUpdate / EndUpdateAsync method block

created 9 years ago

Hi,

We are using your WPF PivotGridControl for a reporting application and we would like to use your Data Bar conditional formatting.

However, I have encountered a few issues when applying the DataBarFormatConditions that I hope you can help me with.

  1. With the Grid in asynchronous mode, if I apply a DataBarFormatCondition between BeginUpdate and EndUpdateAsync then it does not get applied. If I apply it after the EndUpdateAsync then it does get applied, but it freezes the UI (i.e. it is applied synchronously).

In the attached sample this is demonstrated - clicking the "Data Bar Format Fails" button applies the DataBarFormatCondition asynchronously and does not work, whereas clicking the "Data Bar Format Succeeds" button applies the DataBarFormatCondition synchronously and works as expected.

  1. When I have a DataBarFormatCondition applied and I update the field orientation, then I get a TargetInvocationException with the InnerException stating that "The calling thread cannot access this object because a different thread owns it."

In the attached sample this can be reproduced by clicking the "Data Bar Format Succeeds" button and then dragging the ID field into the Row Fields area.

  1. When I set the DataBarFormatCondition Type to "Expression" and the Value to another field, then the conditional formatting seems to ignore this and just take the value of the Measure Field.

In the attached sample this can be reproduced by clicking the "Data Bar Format With Expression Fails" button. I would expect if the expression was applied that the data bars for both Value and Scaled Value columns would be the same.

Please could you take a look and let me know whether there is any way around these issues, or whether I'm doing something wrong!

Thanks in advance,
Stuart

Comments (3)
SS SS
Stuart Smith 6 9 years ago

    Updated sample including data file this time.

    DevExpress Support Team 9 years ago

      Hi Stuart ,
      In order not to mix several problems in one thread, I have opened separate issues on your behalf:
      TargetInvocationException is thrown when the field orientation is changed
      Expression mode does not work properly with asynchronous mode
      Please refer to these reports for further correspondence on this item.

      DevExpress Support Team 9 years ago

        I have reproduced the first issue and passed this thread to our developers for further research. We are going to update it as soon as possible.

        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.

          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.