dropdown list data not bind

Hi

dropdown datasource not bind when it's created 
if I click twice it's bound

code is below









1 Reply 1 reply marked as answer

JM Jeyanth Muthu Pratheeban Sankara Subramanian Syncfusion Team August 11, 2020 02:08 PM UTC

Hi Cemil,

Greetings from Syncfusion support.

We have checked your screenshot. We suggest you to set the DataSource type as ObservableCollection as like below.


 
public class Games 
{ 
    public string ID { get; set; } 
    public string Text { get; set; } 
} 
ObservableCollection<GamesLocalData = new ObservableCollection<Games> { 
new Games() { ID"Game1", Text"American Football" }, 
new Games() { ID"Game2", Text"Badminton" }, 
new Games() { ID"Game3", Text"Basketball" }, 
new Games() { ID"Game4", Text"Cricket" } 
}; 


If we misunderstood your query, kindly revert back with some elaboration or if possible try to reproduce the reported issue in the attached sample which will help us to investigate and provide you a better solution from our end.

Sample Link : https://www.syncfusion.com/downloads/support/directtrac/general/ze/Observable436721795 


Regards, 
Jeyanth. 


Marked as answer
Loader.
Up arrow icon