Data Columns

Docs

The DataOnlyColumns property allows additonal data to be selected from the data source and stored on the combo options as data attributes.

Title
Title Of Courtesy
Birth Date
Hire Date
Address
City
Region
Postal Code
Country
Home Phone
Extension
Razor
                                
                                        
DbNetComboCore employeesCombo = new DbNetComboCore("northwind", "employees", "employeeid", "lastname || ', ' || firstname", "employeeCombo");
employeesCombo.DataOnlyColumns = new List
() { "Title", "TitleOfCourtesy", "BirthDate", "HireDate", "Address", "City", "Region", "PostalCode", "Country", "HomePhone", "Extension" };
employeesCombo.Bind(EventType.OnOptionSelected, "showSelectedEmployee");
@employeesCombo.Render()