Loading multi-select throws null reference error in Field Settings

I have the following dialog where I've added a multi-select drop down.

<SfDialog Width="500px" Height="300px" IsModal="true" @bind-Visible="@IsAdvisorSignUpVisible">
    <DialogTemplates>
        <Content>
            <h4 class="text-center">RTS Premiere Advisor Sign-up</h4>
            <br />
            <br />
                <SfMultiSelect TValue="Guid?[]" @bind-Value="@SelectedHouseholdList" TItem="Household" Placeholder="Select household" DataSource="@Households"></SfMultiSelect>
                <MultiSelectFieldSettings Text="AccountName" Value="HouseholdId"></MultiSelectFieldSettings>


            @if (SelectedHousehold != Guid.Empty)
            {
                <br />
                <br />
                <div class="text-center">
                        <SfButton OnClick="HouseHoldStripeNavigation">Sign-up @HouseholdName</SfButton>
                 </div>
            }
            <DialogButtons>
                <DialogButton Content="Close" OnClick="@CloseAdvisorSignUpDialog"></DialogButton>
            </DialogButtons>
        </Content>
    </DialogTemplates>
</SfDialog>


When the Dialog loads, I get an error

System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Blazor.DropDowns.MultiSelectFieldSettings.OnInitializedAsync()
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()

I


"Households" is a list of type "Household" and has >0 values. I can't figure out where my null reference is coming from.


2 Replies 1 reply marked as answer

JM Jeffrey McGarry July 27, 2022 01:55 PM UTC

Never mind.  My closing SfMultiselect tag was in the wrong place.  You can close this ticket.


Thanks.


Marked as answer

BS Buvana Sathasivam Syncfusion Team July 27, 2022 05:11 PM UTC

Hi Jeffrey,


Thank you for your update. We are glad your problem has been resolved. Please let us know if you need any further assistance.


Regards,

Buvana S


Loader.
Up arrow icon