Hi,
When setting the datasource as the result of a call to an API do we need to check if the datasource is not null before rendering the dropdownlist?
For example, here we are checking that the datasource is not null - do we need to do this or will the control handle this for us?
@if (workflowTasksActivities != null)
{
<SfDropDownList CssClass="bg-light-gray border small m-0" TItem="WorkflowTasksActivity" Placeholder="Select Workflow Activity" TValue="int?" PopupHeight="auto" DataSource="@workflowTasksActivities" @bind-Value="Order.WorkflowTasksActivityId">
<DropDownListFieldSettings Text="DisplayName" Value="Id"></DropDownListFieldSettings>
</SfDropDownList>
}