Layout |
Docs
The layout of the control can be controlled using the Layout property which can be set to Column (default) or Row. |
Loading...
Razor code
SelectModel customerSelect = new SelectModel(DataSourceType.SQLite, "northwind", "Customers")
{
Caption = "Customer",
Searchable = true,
Layout = LayoutType.Row,
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>