I'm using a DataGrid and the OData data adaptor with these three classes:
public class Employee {
public Guid EmployeeId { get; set; }
public string Name { get; set; }
}
public class EmployeeTraining {
public Guid EmployeeId { get; set; }
public Guid TrainingId
public bool Attended { get; set; }
}
public class Training {
public Guid TrainingId { get; set; }
public string Name { get; set; }
}
The edit template for the grid:
<Template>
@{ var EmployeeTraining = (context as EmployeeTraining);}
<label class="e-label-top">Attended:</label>
<SfDropDownList TItem="string"
TValue="Attended"
Text="@EmployeeTraining.Attended.ToString()"
@bind-Value="@EmployeeTraining.Attended"
Placeholder="Attended"
DataSource="@AttendedDropDown">
</SfDropDownList>
</Template>
Everything displays correctly in the edit dialog, but when I click on Save I get the data grid throws the following error: "Response status code does not indicate success: 404 (Not Found)."