Query |
Details |
Any progress on this? Currently its not possible to use the Circular gauge on the dashboardlayout component. |
We have forwarded this query to our internal team. We will update on this once they have responded. |
Out of interest why does this issue effect the SfCircularGauge but not SfChart? |
As we mentioned before, the Circular Gauge component renders fast before the rendering of the Dashboard Layout component while resizing of the browser window. So, this issue is occurring in the resize event. However, we will check again with the Chart component and update you with further details on March 26, 2021. |
<SfDashboardLayout CellSpacing="@(new double[]{20 ,20 })" AllowResizing="true" Columns="2">
<DashboardLayoutEvents OnResizeStop="ResizeStop"></DashboardLayoutEvents>
//…
<SfAccumulationChart ID="chart1" @ref="chartObj1" Title="Mobile Browser Statistics">
</SfAccumulationChart>
//….
</SfDashboardLayout>
@code
{
SfAccumulationChart chartObj1;
public void ResizeStop(Syncfusion.Blazor.Layouts.ResizeArgs args)
{
this.chartObj1.Refresh();
}
} |
<SfCircularGauge @ref="CircularGauge" Width="100%" Height="100%">
<CircularGaugeEvents Resizing="Resizing"></CircularGaugeEvents>
…
</CircularGauge>
@code{
public SfCircularGauge CircularGauge;
public DateTime RefreshDateTime;
public void Resizing(Syncfusion.Blazor.CircularGauge.ResizeEventArgs args)
{
if (RefreshDateTime == new DateTime() || (DateTime.Now - RefreshDateTime).TotalMilliseconds > 20)
{
RefreshDateTime = DateTime.Now;
CircularGauge.Refresh();
}
}
} |
That works better. Still neVolume 3, 2021 fix though.