...
var customersCombo = new DbNetComboCore("northwind", "customers", "customerid", "companyname", "filteredcustomers") { AddFilter = true };
customersCombo.Bind(EventType.OnOptionsLoaded, "showNumberOfOptionsLoaded");
@customersCombo.Render();
...
<script type="text/javascript" class="source">
function showNumberOfOptionsLoaded(control, args) {
$("#optionsLoaded").html(`${args.options.length} options loaded`);
}
</script>
...
|