|
@using Syncfusion.Blazor.Grids
@using Syncfusion.Blazor.SplitButtons
<SfGrid DataSource="@Employees">
<GridColumns>
<GridColumn HeaderText="Employee Image" TextAlign="TextAlign.Center" Width="120">
<Template>
@{
var myObj = (context as EmployeeData);
<div>
<SfProgressButton @ref="@SfRefreshButtons[myObj.EmployeeID]" CssClass="e-round e-small" IconCss="mdi mdi-refresh-circle" OnClick="@(() => OnRefreshClick(myObj.EmployeeID))">
<ProgressButtonSpinSettings Position="SpinPosition.Center"></ProgressButtonSpinSettings>
<ProgressButtonAnimationSettings Effect="AnimationEffect.ZoomOut"></ProgressButtonAnimationSettings>
</SfProgressButton>
</div>
}
</Template>
</GridColumn>
</GridColumns>
</SfGrid>
@code{
private Dictionary<int?, SfProgressButton> SfRefreshButtons = new Dictionary<int?, SfProgressButton>();
public void OnRefreshClick(int? val)
{
var a = SfRefreshButtons;
}
|
|
|