-
Notifications
You must be signed in to change notification settings - Fork 450
Open
Labels
needs: author feedbackThe author of this issue needs to respond in order for us to continue investigating this issue.The author of this issue needs to respond in order for us to continue investigating this issue.status:in-progressWork is in progressWork is in progress
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
needs: author feedbackThe author of this issue needs to respond in order for us to continue investigating this issue.The author of this issue needs to respond in order for us to continue investigating this issue.status:in-progressWork is in progressWork is in progress