Spinner does not close if there is a grid in the page

I have attached a sample project with a very strange behavior: The spinner works perfectly. It shows on OnInitializedAsync method and hides on OnAfterRender but only until I add a grid then it does not close anymore

HOWEVER, if the browser (Chrome in this case) is refreshed, then it starts to work fine. The spinner shows/hide with the grid in the page

I have tested exaustively before opening this thread. I hope you are able to reproduce it.

Thanks.

Attachment: RPTest_702b0077.zip


7 Replies 1 reply marked as answer

VJ Vinitha Jeyakumar Syncfusion Team July 28, 2022 02:12 PM UTC

Hi Ben,


Currently, we are validating your reported query. we will update you the further details on or before 1st August 2022.

Regards,
Vinitha




BJ Ben Junior July 29, 2022 01:33 PM UTC

Ok. 

Thanks for the update



VJ Vinitha Jeyakumar Syncfusion Team August 3, 2022 12:15 PM UTC

Hi Ben,


Your reported issue can be resolved by adding a delay before closing the spinner in OnAfterRender function just like below,

Code snippet:
 protected override void OnAfterRender(bool firstRender)
    {
        Task.Delay(500);
        if (firstRender) { showSpinnerMain = false; }
    }



Regards,
Vinitha


BJ Ben Junior August 3, 2022 11:09 PM UTC

Hi  Vinitha


I tried the sample from the link you sent  but for some reason  it didn't work.  It is still the same issue.



VJ Vinitha Jeyakumar Syncfusion Team August 4, 2022 11:41 AM UTC


Hi Ben,


Sorry for the inconvenience,

Your reported issue can be resolved by hiding the spinner in the dataBound event of the Grid control.

Code snippet:
public void dataBound()
    {
        showSpinnerMain = false;
    }



Regards,
Vinitha

Marked as answer

BJ Ben Junior August 5, 2022 09:21 PM UTC

Hi  Vinitha

Thanks so much. It works now. I've spent hours if not a day trying to find a solutionandhereit is.

Best regards,


BJ




VJ Vinitha Jeyakumar Syncfusion Team August 8, 2022 05:32 AM UTC

Hi Ben,


We are glad to assist you.

Regards,
Vinitha

Loader.
Up arrow icon