Ticket Q324108
Visible to All Users

PivotGrid - How to enable the asynchronous mode

created 14 years ago

Hi Guys,
what exaclty is needed to fully enable the asynchronous mode in the analysis module? can you share some infos?
thx
Noxe
Proposed Solution:
Support this mode in PivotGrid ListEditors and Analysis module.

Answers

created 14 years ago (modified 9 years ago)

Hello Noxe,
Thank you for your message.
We have not yet researched how to implement this feature in XAF and whether there are any issues.
According to the blog, setting the UseAnyncMode property to True (after default pivot grid settings were loaded from the database) should be enough:

C#
... CustomizeGrid(((AnalysisControlWin)analysisEditor.Control).PivotGrid) ... private void CustomizeGrid(PivotGridControl grid) { grid.OptionsBehavior.UseAsyncMode = true; //Dennis: You can also control the loading panel delay. It is 300 milliseconds by default. //grid.OptionsBehavior.LoadingPanelDelay = 500; }

See Also:
Modules - Provide a module similar to the Analysis module, and take advantages of the new PivotGrid and Chart List Editors in it
Thanks,
Dennis

    Comments (3)
    Dennis Garavsky (DevExpress) 14 years ago

      Noxe,
      Just wanted to follow up on this async mode - you will unlikely notice how it works with small data sources (e.g. in the MainDemo with a couple of records only in the data source).
      This is because the loading panel appears only after 300 milliseconds by default. You can reach this time limit only with large and complex data sources (about 50-100k records) and complex pivot grid layouts.
      You can control this delay via the OptionsBehavior.LoadingPanelDelay property. I hope you find this information helpful.
      See Also:
      http://documentation.devexpress.com/#Xaf/CustomDocument3025
      http://documentation.devexpress.com/#Xaf/CustomDocument3050
      Thanks,
      Dennis

      M M
      Martin Praxmarer - DevExpress MVP 14 years ago

        Thank you for the update Dennis. I have indeed large data - thats why i asked this - my users are waiting since the beginning for this!
        Initialy i looked here \Public\Documents\DevExpress 2011.1 Demos\Components\WinForms\XtraPivotGrid\CS\PivotGridMainDemo\Modules\AsyncMode.cs - the demo used the AsyncCompletedHandler in several places, so i was not sure if its as simple as set one property. I will give it a try!
        thx
        Noxe

        Dennis Garavsky (DevExpress) 14 years ago

          Yes, one option is already enough.
          Regards,
          Dennis

          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.