Bug Report T970319
Visible to All Users

DataGrid for Blazor - The TaskCancelled exception is thrown when DataGrid has the Paging feature enabled and navigation between application pages occurs

created 4 years ago (modified 4 years ago)

Steps to reproduce:

  1. The issue can be reproduced on the DataGrid - Paging and Scrolling demo page.
  2. Navigate to that demo.
  3. Navigate to another page (e.g. "Overview).
  4. At this stage, there are already a lot of TaskCancelled exceptions.
  5. Return to the demo page.
  6. Press F5 several times - TaskCancelled exceptions are thrown again.
Call Stack
System.Threading.Tasks.TaskCanceledException: A task was canceled. at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args) at DevExpress.Blazor.Internal.Grid.DxDataGridHeadCell`1.<InitClientSide>b__24_2(DataGridColumnResizeMode mode, Boolean hasScrolling, ScrollBarMode horizontalScrollBarMode, Boolean hasPager, ISubject`1[] visibleIndex, ISubject`1[] groupIndex) at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecuteSynchronously(TaskCompletionSource`1 completion, SendOrPostCallback d, Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecuteBackground(WorkItem item)

Important note:

These unhandled exceptions don't cause problems in the end-user UI, but they are displayed in monitoring applications.
I noticed that the number of exceptions is larger for demos with Paging enabled. For example, the DataGrid - HTML Decoration demo produces less TaskCancelled exceptions.

Answers approved by DevExpress Support

created 4 years ago

We have addressed the issue described in this ticket and will include a fix in our next maintenance update. Should you need to apply our fix prior to official release, you can request a hotfix here.

Note: Hotfixes may be unavailable for betas/updates set for release within a week.

    Show previous comments (1)
    DevExpress Support Team 4 years ago

      Hello Zoia,

      I created a separate ticket on your behalf: (T992377: DataGrid for Blazor - When v21.1.2 will be released). We placed it in our processing queue and will process it shortly.

        Hi Helen

        I see the ticket (T992377) is private. Can you make it public please?

        Regards
        Johan

        DevExpress Support Team 4 years ago

          Hi Johan,

          The ticket is public now. If you have any additional questions, feel free to contact us.

          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.