jqxComboBox requires the following files:
jqx.base.cssjqxcore.jsjqxbuttons.jsjqxscrollbar.jsjqxlistbox.jsjqxcombobox.js<script src="~/jqwidgets/jqxbuttons.js"></script> <script src="~/jqwidgets/jqxscrollbar.js"></script> <script src="~/jqwidgets/jqxinput.js"></script> <script src="~/jqwidgets/jqxlistbox.js"></script> <script src="~/jqwidgets/jqxcombobox.js"></script> <script src="~/jqwidgets/jqxcheckbox.js"></script> @model IEnumerable<jQWidgets.AspNet.Core.Models.SalesEmployee> <jqx-combo-box animation-type="fade" width="200" height="25" source="Model"></jqx-combo-box>To call a function(method), you need to pass the method name and parameters(if any) in the UI component’s instance.
<script src="~/jqwidgets/jqxbuttons.js"></script>
<script src="~/jqwidgets/jqxscrollbar.js"></script>
<script src="~/jqwidgets/jqxinput.js"></script>
<script src="~/jqwidgets/jqxlistbox.js"></script>
<script src="~/jqwidgets/jqxcombobox.js"></script>
<script src="~/jqwidgets/jqxcheckbox.js"></script>
@model IEnumerable<jQWidgets.AspNet.Core.Models.SalesEmployee>
<jqx-combo-box width="200" height="25" source="Model" instance="getInstance()"></jqx-combo-box>
@section scripts {
<script type="text/javascript">
function getInstance(instance) {
instance["addItem"]('item');
}
</script>
}
To bind to an event of a UI Component, you can use on-event-type syntax. The example
code below demonstrates how to bind to an event.
<script src="~/jqwidgets/jqxbuttons.js"></script>
<script src="~/jqwidgets/jqxscrollbar.js"></script>
<script src="~/jqwidgets/jqxinput.js"></script>
<script src="~/jqwidgets/jqxlistbox.js"></script>
<script src="~/jqwidgets/jqxcombobox.js"></script>
<script src="~/jqwidgets/jqxcheckbox.js"></script>
@model IEnumerable<jQWidgets.AspNet.Core.Models.SalesEmployee>
<jqx-combo-box on-binding-complete="eventHandler()"></jqx-combo-box>
@section scripts {
<script type="text/javascript">
function eventHandler(event) {
}
</script>
}