Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147126 | Sep 2,2019 01:33 PM UTC | Sep 5,2019 03:51 AM UTC | ASP.NET Core - EJ 2 | 4 |
![]() |
Tags: AutoComplete |
<ejs-combobox id="city" placeholder="Select a Zipcode" popupHeight="200px" dataSource="@ViewBag.data" change="onChange">
<e-combobox-fields groupBy="Category" value="Id" text="Zipcode"></e-combobox-fields>
</ejs-combobox>
public class City
{
public int Zipcode { get; set; }
public string Category { get; set; }
public string Id { get; set; }
public List<City> CityList()
{
List<City> city = new List<City>();
city.Add(new City { Zipcode = 7300, Category = "Mecsekpoloske", Id = "item1" });
city.Add(new City { Zipcode = 7300, Category = "Komlo", Id = "item2" });
return city;
}
} |
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.
This page will automatically be redirected to the sign-in page in 10 seconds.