Simple |
Docs
The Select control makes it easy to connect the HTML select element with any of the supported data sources. |
Loading...
Razor code
SelectModel customerSelect = new SelectModel(DataSourceType.SQLite, "northwind", "Customers")
{
Caption = "Customer",
EmptyOption = "Please select a customer",
Columns = new List()
{
new SelectColumn("CustomerID"),
new SelectColumn("CompanyName")
}
};
customerSelect.ClientEvents[SelectClientEvent.OptionSelected] = "showSelectedCustomer";
@(await new DbNetSuiteCore.SelectControl(HttpContext).Render(customerSelect))
<div id="selectedCustomer"></div>