I have two cascading dropdowns:
<div class="row">
<div class="col-sm-4">
Detector Manufacturer<span class="mandatory">*</span>
</div>
<div class="col-sm-8">
<SfDropDownList @ref="drpdwnDetectMan" TValue="int?" TItem="LookupDetectorManufacturers" Placeholder="Detector Manufacturer" @bind-Value="@DetectManValue">
<SfDataManager Url="api/DetectorManufacturersDD" Adaptor="Adaptors.WebApiAdaptor" CrossDomain="true"></SfDataManager>
<DropDownListFieldSettings Text="Manufacturer" Value="Id"></DropDownListFieldSettings>
<DropDownListEvents TItem="LookupDetectorManufacturers" TValue="int?" ValueChange="ChangeDetectorManufacturer"></DropDownListEvents>
</SfDropDownList>
</div>
</div>
<div class="row">
<div class="col-sm-4">
Detector Model<span class="mandatory">*</span>
</div>
<div class="col-sm-8">
<SfDropDownList @ref="drpdwnDetModel" Enabled="@EnableManDetModelDropDown" TValue="int?" @bind-Value="@DetModelValue" TItem="LookupDetectorModels" Placeholder="Detector Model" Query="@ManModelQuery">
<SfDataManager Url="api/DetectorModelsDD" Adaptor="Adaptors.WebApiAdaptor" CrossDomain="true"></SfDataManager>
<DropDownListFieldSettings Text="Model" Value="Id"></DropDownListFieldSettings>
</SfDropDownList>
</div>
</div>
I am using entity framework for talking to my database using the techniques to create a Data Access Layer here: https://blazor.syncfusion.com/documentation/dropdown-list/data-source/
The second (dependant) dropdown always shows no data. The data controller is being run and is returning data I would expect. This is confirmed by running with breakpoints and whilst using breakpoints extracting the submitted query strings and confirming that call returns the correct JSON e.g.
{"items":[{"id":21,"manufacturerId":7,"model":"Bat4","verified":null,"manufacturer":null},{"id":22,"manufacturerId":7,"model":"Bat5","verified":null,"manufacturer":null}],"count":2}
If I ensure in the second dropdown that EnableManDetModelDropDown is always true and I remove the query parameter then the second drop down fills with data whch suggests togeather with the evidence above that the JSON is in the correct form for the dropdown.
These dropdowns are in a SfTab in another SfTab itself in a Blazor component. That component is being rendered in a SFDialog.