Using the dataadptor with the combobox and setting the value (@bind-value) on the after render async of the page is not working. The value is not setted.
Try this:
@using Syncfusion.Blazor.DropDowns
@using Syncfusion.Blazor.Data
@page "/test-sync-fusion-2"
@code {
public string binded { get; set; }
public Query RemoteDataQuery = new Query().Select(new List { "CustomerID" }).Take(6).RequiresCount();
public class OrderDetails
{
public int? OrderID { get; set; }
public string CustomerID { get; set; }
public int? EmployeeID { get; set; }
public double? Freight { get; set; }
public string ShipCity { get; set; }
public bool Verified { get; set; }
public DateTime? OrderDate { get; set; }
public string ShipName { get; set; }
public string ShipCountry { get; set; }
public DateTime? ShippedDate { get; set; }
public string ShipAddress { get; set; }
}
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
binded = "ANATR"; // value setted but not shown, if you than click on the combobox the value is setted. This is a sample, in my real codebase this thing make the combobox lose it's assignation
}
await base.OnAfterRenderAsync(firstRender);
}
}
or look for the two samples in the zip attached