jqxFileUpload requires the following files:
jqx.base.cssjqxcore.jsjqxbuttons.jsjqxscrollbar.jsjqxlistbox.jsjqxfileupload.js<script src="~/jqwidgets/jqxfileupload.js"></script>
<script src="~/jqwidgets/jqxbuttons.js"></script>
<jqx-file-upload auto-upload="true" upload-url="@Url.Action("UploadFile", "TagHelpers")" ></jqx-file-upload>
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/jqxfileupload.js"></script>
<script src="~/jqwidgets/jqxbuttons.js"></script>
<jqx-file-upload instance="getInstance()" upload-url="@Url.Action("UploadFile", "TagHelpers")" ></jqx-file-upload>
@section scripts {
<script type="text/javascript">
function getInstance(instance) {
instance["browse"]();
}
</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/jqxfileupload.js"></script>
<script src="~/jqwidgets/jqxbuttons.js"></script>
<jqx-file-upload on-remove="eventHandler()" upload-url="@Url.Action("UploadFile", "TagHelpers")" ></jqx-file-upload>
@section scripts {
<script type="text/javascript">
function eventHandler(event) {
}
</script>
}