We have a complex DTOs that is kinda like this
public class Order
{
public int? OrderID { get; set; }
public string CustomerID { get; set; }
public DateTime? OrderDate { get; set; }
public double? Freight { get; set; }
public TestEnum? Test { get; set; }
public List<TestClass> TestList { get; set; } = new List<TestClass>();
}
public class TestClass
{
public int Id { get; set; }
public double Value { get; set; }
}
public class TestId
{
public int Id { get; set; }
public string Name { get; set; }
public override string ToString()
{
return Id.ToString();
}
}
and we're trying to create one column for each value of TestList into Order based on a list of TestId
Everthing seems to work but, after editing the column and lost the focus, the model isn't updated with the latest information. I'll attach the example project.
Attachment:
BlazorApp1_e6eb3e9a.zip