This commit is contained in:
Loretta 2025-11-12 17:56:56 +01:00
parent cfe9c2c3fd
commit aad3a59383
3 changed files with 5 additions and 3 deletions

View File

@ -27,7 +27,7 @@
<DxToolbarItem Text="To PDF" Click="ExportPdfItem_Click" />
</Items>
</DxToolbarItem>
<DxToolbarItem Text="Reload data" BeginGroup="true" Click="ReloadData_Click" />
<DxToolbarItem Text="Reload data" BeginGroup="true" Click="ReloadData_Click" Enabled="@BtnReloadDataEnabled" />
<DxToolbarItem BeginGroup="true">
</DxToolbarItem>
@* <DxToolbarItem BeginGroup="true">
@ -46,6 +46,8 @@
public ToolbarBase Toolbar { get; set; }
const string ExportFileName = "ExportResult";
public bool BtnReloadDataEnabled = true;
public bool EditItemsEnabled { get; set; } = true;
private LoggerClient<GridShippingItemTemplate> _logger;
@ -56,7 +58,9 @@
async Task ReloadData_Click(ToolbarItemClickEventArgs e)
{
BtnReloadDataEnabled = false;
await OnReloadDataClick.InvokeAsync();
BtnReloadDataEnabled = true;
}
async Task NewItem_Click()

View File

@ -48,7 +48,6 @@
<a>@ctxOrderDate.Day.ToString()</a>
}
}
or
</DayCellTemplate>
</DxDateEdit>
</div>

View File

@ -33,7 +33,6 @@ namespace FruitBankHybrid
builder.Services.AddSingleton<IAcLogWriterClientBase, BrowserConsoleLogWriter>();
#endif
builder.Services.AddSingleton<ObjectLock>();
builder.Services.AddSingleton<LoggedInModel>();
builder.Services.AddScoped<FruitBankSignalRClient>();
builder.Services.AddSingleton<DatabaseClient>();