You can try this:
foreach (var role in NewUserRoles)
{
<Field>
<input type="hidden" @bind-value="@role.Name" />
<Check TValue="bool" Checked="@role.IsAssigned" CheckedChanged="@(v => OnSelectedRoleChangeAsync(role.Name, v))">@role.Name</Check>
</Field>
}
Task OnSelectedRoleChangeAsync(string roleName, bool value)
{
var role = NewUserRoles.FirstOrDefault(x => x.Name == roleName);
role.IsAssigned = value;
if (value)
{
foreach (var item in NewUserRoles)
{
if (item.Name != roleName)
{
item.IsAssigned = false;
}
}
}
return Task.CompletedTask;
}
Hi,
Whether it is admin or public, it is the ASP.NET Core application.
You can manually install the CMS module into your app.
See: https://docs.abp.io/en/abp/latest/Modules/Cms-Kit/Index#the-packages
Hi,
See: https://docs.abp.io/en/abp/latest/Multi-Tenancy#change-the-current-tenant
You can change the current tenant.
For example:
var tenants = await TenantRepository.GetListAsync();
foreach(var tenant in tenants)
{
using(CurrentTenant.Change(tenant.Id))
{
//inserts/updates for a tenant here..
}
}
you can see ABP also the blazorise datagrid
Try
EmptyTemplate> <Row Class="w-100 align-items-center" Style="height: 150px;"> <Column> <Heading Size="HeadingSize.Is4" Alignment="TextAlignment.Center">No data available</Heading> </Column> </Row> </EmptyTemplate>
Hi,
We mentioned it in the best practices document https://docs.abp.io/en/abp/latest/Best-Practices/Module-Architecture#http-layer
Because your major problem is solved, so I'm closing the question, reopen if still not working.
Hi,
The exact solution to your question has been answered before
See: https://support.abp.io/QA/Questions?Sort=LastActivityDate-desc&Filter=%22default+language%22