We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

DropDownList default value adds as an item not as default value.

Adding Index=0 as an attribute to EjsDropDownList, adds it to the item list not as default value. The first item is indeed selected, however it is being added as an item.

I'm using version 17.3.29.

<EjsDropDownList TValue="string"
DataSource="@_list"
Placeholder="Dates Found"
FloatLabelType="FloatLabelType.Auto"
                                Index="0">
     <DropDownListFieldSettings Text="TheDates" Value="ID" />
     <DropDownListEvents TValue="string" ValueChange="onChange" />
</EjsDropDownList>

Attachment: EjsDropDownDefaultValueError_60e5dda7.zip

1 Reply

SN Sevvandhi Nagulan Syncfusion Team January 8, 2020 01:35 PM UTC

Hi J, 

Greetings from Syncfusion support. 

We have checked the reported requirement in the mentioned version. Unfortunately, we were unable to reproduce the reported issue in our end. We suspect that you have mismatched script version comparing to the nuget package. We suggest to refer the both nuget and script in the same version. Kindly refer the below sample, 


If still issue persist, kindly provide below details that help us to proceed further. 

  1. Issue reproducing sample
  2. If possible, modify the above sample to replicate the issue.

Regards, 
Sevvandhi N 


Loader.
Live Chat Icon For mobile
Up arrow icon