SfDropDownList with TItem IDictionary string, object not working ANYMORE in version 26.2.11

Hello,


After updaing to version 26.2.11 the SfDropDownList is not showing data. The following code snippet WAS WORKING on previous versions:


<SfDropDownList TItem="IDictionary<string, object>FloatLabelType="@FloatLabelType.Auto"

    @bind-Value="@lookupID" DataSource="@dataX" TValue="int">

    <DropDownListFieldSettings Value="ID" Text="Description"></DropDownListFieldSettings>

</SfDropDownList>


@code{

 public List< IDictionary<string, object> > dataX = GetRows();

}

I had to change all occurances of  IDictionary<string, object> to ExpandoObject in order to make it work


Regards,


Bill


1 Reply

PK Priyanka Karthikeyan Syncfusion Team September 2, 2024 12:54 PM UTC

Hi Bill Lemonis,

Thank you for reaching out. To bind the IDictionary<string, object> to a DropDownList, please refer to the following Syncfusion public forum discussion. This discussion provides detailed guidance on how to effectively bind dictionaries to the DropDownList component.

 

If you need any further assistance, please don't hesitate to reach out. We are always happy to assist you further.

Regards,

Priyanka K


Loader.
Up arrow icon