Hide display of component loading progress in Blazor

Stimulsoft Reports.BLAZOR discussion
Post Reply
mrapi
Posts: 277
Joined: Sat Dec 20, 2008 1:08 am

Hide display of component loading progress in Blazor

Post by mrapi »

Hi
since version 2022.1.5 there is new feature: "2. We added the display of component loading progress bar for Blazor Wasm."

Is there any way to disable that new feature,since it was added I see then progress circle on top,it hides for 1-2 seconds then I see it on middle,with previous verions is was displayed only in center.
you can reproducer this behavior with Blazor sample "Showing a Viewer without Toolbar"

thanks
Max Shamanov
Posts: 824
Joined: Tue Sep 07, 2021 10:11 am

Re: Hide display of component loading progress in Blazor

Post by Max Shamanov »

Hello,

The progress circle is displayed in different positions because the viewer does not know the height of the report at the beginning.
You can set the height for the viewer from the code:

Code: Select all

<StiBlazorViewer Report="@report" Options="@options" Height="1000px"  />
Thank you.
mrapi
Posts: 277
Joined: Sat Dec 20, 2008 1:08 am

Re: Hide display of component loading progress in Blazor

Post by mrapi »

Hi
setting Height="1000px" doesn't' show the circle in first time in the same position as is shown on second time(you can see it in sample "Showing a Viewer without Toolbar").
on our app it is shown about 5cm difference on a pc screen.
for us first time shown disable is a good solution

thanks
Max Shamanov
Posts: 824
Joined: Tue Sep 07, 2021 10:11 am

Re: Hide display of component loading progress in Blazor

Post by Max Shamanov »

Hello,

try to use the following code in index.html :

Code: Select all

<style>
        .sti-loader {
            display: none !important;
        }
    </style>
Thank you.
mrapi
Posts: 277
Joined: Sat Dec 20, 2008 1:08 am

Re: Hide display of component loading progress in Blazor

Post by mrapi »

great
thanks!
Lech Kulikowski
Posts: 6471
Joined: Tue Mar 20, 2018 5:34 am

Re: Hide display of component loading progress in Blazor

Post by Lech Kulikowski »

Hello,

You are welcome.
mrapi
Posts: 277
Joined: Sat Dec 20, 2008 1:08 am

Re: Hide display of component loading progress in Blazor

Post by mrapi »

Hi,after update from 2022.4.5 to 2023.1.1 I'm not able to hide progress loading
thanks
Max Shamanov
Posts: 824
Joined: Tue Sep 07, 2021 10:11 am

Re: Hide display of component loading progress in Blazor

Post by Max Shamanov »

Hello,

Please try to use the following code in index.html :

Code: Select all

<style>
        .sti-component-loader {
            display: none !important;
        }
    </style>
Thank you.
mrapi
Posts: 277
Joined: Sat Dec 20, 2008 1:08 am

Re: Hide display of component loading progress in Blazor

Post by mrapi »

it works.thanks!
Max Shamanov
Posts: 824
Joined: Tue Sep 07, 2021 10:11 am

Re: Hide display of component loading progress in Blazor

Post by Max Shamanov »

Hello,

You are Welcome!
Post Reply