jqxDateTimeInput requires the following files:
jqx.base.cssjqxcore.jsglobalize.jsjqxcalendar.jsjqxdatetimeinput.js<script src="~/jqwidgets/jqxcalendar.js"></script>
<script src="~/jqwidgets/jqxdatetimeinput.js"></script>
<script src="~/jqwidgets/globalization/globalize.js"></script>
@{
DateTime date = new DateTime(2017, 9, 20);
DateTime min = new DateTime(2002, 9, 20);
DateTime max = new DateTime(2018, 9, 20);
}
<jqx-date-time-input animation-type="fade" width="250" height="30"></jqx-date-time-input>
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/jqxcalendar.js"></script>
<script src="~/jqwidgets/jqxdatetimeinput.js"></script>
<script src="~/jqwidgets/globalization/globalize.js"></script>
@{
DateTime date = new DateTime(2017, 9, 20);
DateTime min = new DateTime(2002, 9, 20);
DateTime max = new DateTime(2018, 9, 20);
}
<jqx-date-time-input width="250" height="30" instance="getInstance()"></jqx-date-time-input>
@section scripts {
<script type="text/javascript">
function getInstance(instance) {
instance["open"]();
}
</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/jqxcalendar.js"></script>
<script src="~/jqwidgets/jqxdatetimeinput.js"></script>
<script src="~/jqwidgets/globalization/globalize.js"></script>
@{
DateTime date = new DateTime(2017, 9, 20);
DateTime min = new DateTime(2002, 9, 20);
DateTime max = new DateTime(2018, 9, 20);
}
<jqx-date-time-input on-change="eventHandler()"></jqx-date-time-input>
@section scripts {
<script type="text/javascript">
function eventHandler(event) {
}
</script>
}