-
Notifications
You must be signed in to change notification settings - Fork 446
Open
Labels
status:needs-investigationNeeds additional investigationNeeds additional investigation
Description
Or, I am just doing it wrong.
Trying to get a FluentSelect TemplateColumn to show the Department associated with the context.
I am able to get it to work with the basic InputSelect.
<FluentDataGrid Items="Items.AsQueryable()">
<PropertyColumn Property="@(p => p.Name)" Title="Name" />
<TemplateColumn Title="InputSelect" Style="overflow: visible;">
<InputSelect class="form-select" @bind-Value="context.DepartmentID" @bind-Value:after="() => DoWork(context)">
<option value="">
Select Budget Category ...
</option>
@foreach (var dept in Departments)
{
<option value="@dept.DepartmentID">@dept.DepartmentName</option>
}
</InputSelect>
</TemplateColumn>
<TemplateColumn Title="FluentSelect" Style="overflow: visible;">
<FluentSelect Items="@Departments"
TOption="Department"
Value="context.Department"
ValueChanged="() => DoWork(context)">
<OptionTemplate Context="dept">
<FluentLabel Typo="Typography.Body" Color="@Color.Accent">
@dept.DepartmentName
</FluentLabel>
</OptionTemplate>
</FluentSelect>
</TemplateColumn>
</FluentDataGrid>
Here is a screenshot of the incorrect behavior in the 3rd column

Metadata
Metadata
Assignees
Labels
status:needs-investigationNeeds additional investigationNeeds additional investigation