Panel1 | Panel2 |
Panel3 | Panel4 |
Issue:
<EjsDashboardLayout CellSpacing="@(new double[]{20 ,20 })" Columns="4" CellAspectRatio="2">
<DashboardLayoutEvents Created="@onCreate"></DashboardLayoutEvents>
<DashboardLayoutPanels>
<DashboardLayoutPanel Row="0" Col="0" SizeX="2" SizeY="2">
<ContentTemplate>
<div style="width:100%;height:100%">
<EjsAccumulationChart ID="pie" Height="100%" Width="100%" @ref="chartObj">
<AccumulationChartSeriesCollection>
<AccumulationChartSeries DataSource="@MedalDetails" XName="Country" YName="Medals">
</AccumulationChartSeries>
</AccumulationChartSeriesCollection>
</EjsAccumulationChart>
</div>
</ContentTemplate>
</DashboardLayoutPanel>
public async Task onCreate(object args)
{
await Task.Delay(1000); // simulate the async operations
this.chartObj.Refresh();
this.barchartObj.Refresh();
this.GridObj1.Refresh();
this.GridObj2.Refresh();
} |