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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

150448 Jan 7,2020 05:02 PM UTC Jan 8,2020 01:35 PM UTC Blazor 1
loading
Tags: Dropdown List
j
Asked On January 7, 2020 05:02 PM UTC

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

Sevvandhi Nagulan [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon