DropDownlist does not work with Net 5

Hi all, I'm using blazor client-side and i already updated to .Net 5 official release, but now, the ddl controls does not work, it shows an empty and I cannot change it.

I do not if  i'm missing something.

<SfDropDownList TItem="GenericKeyValuePairDto" TValue="string" PopupHeight="230px" DataSource="@ProductType">
    <DropDownListFieldSettings Text="Text" Value="Id"></DropDownListFieldSettings>
</SfDropDownList>

namespace DemoDDL.Pages
{
    public class IndexBase : ComponentBase
    {
        protected List<GenericKeyValuePairDtoProductType { getset; } = new List<GenericKeyValuePairDto>();

        protected string Value { getset; }

        protected override void OnInitialized()
        {
            LoadProductTypes();
        }

        private void LoadProductTypes()
        {
            ProductType.Add(new GenericKeyValuePairDto
            {
                Id = "1",
                Text = "Blazor"
            });

            ProductType.Add(new GenericKeyValuePairDto
            {
                Id = "2",
                Text = "Angular"
            });
        }
    }

    public class GenericKeyValuePairDto
    {
        public string Id { getset; }

        public string Text { getset; }
    }
}

I'm attaching a very simple example to reproduce the issue.





Attachment: DemoDDL_4459344f.zip

1 Reply 1 reply marked as answer

SP Sureshkumar P Syncfusion Team November 24, 2020 10:36 AM UTC

Hi Julio, 
 
Greetings from Syncfusion support. 
 
Based on your shared information, we suspect that you have installed mismatched Syncfusion.Licensing NuGet compare with Syncfusion.EJ2.Blazor package version. We suggest you installed both packages are same version to resolve the script error.  
 
Also, we found that the attached sample you have loaded the manual script rendering (syncfusion-blazor.min.js script). We have removed that script because no need to load manual script to render the Syncfusion component. if you want to load the script manually, please update the exact reason you need to load the script, we will update the response based on your requirement.  
 
 
Regards, 
Sureshkumar P  


Marked as answer
Loader.
Up arrow icon