ASP .NET Core MVC Documentation
Getting Started
jqxRadioButton represents a radio button component.Every ASP .NET Core Mvc Tag Helper from jQWidgets toolkit needs its JavaScript files to be included in order to work properly.
jqxRadioButton requires the following files:
CSS
jqx.base.css
Javascript
jqxcore.js
jqxradiobutton.js
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/jqxradiobutton.js"></script>
<jqx-radio-button theme="arctic">3 Months Contract</jqx-radio-button>
<jqx-radio-button theme="arctic">6 Months Contract</jqx-radio-button>
To bind to an event of a UI Component, you can use<script src="~/jqwidgets/jqxradiobutton.js"></script>
<jqx-radio-button instance="getInstance()">3 Months Contract</jqx-radio-button>
<jqx-radio-button {{configuration}}>6 Months Contract</jqx-radio-button>
@section scripts {
<script type="text/javascript">
function getInstance(instance) {
instance["check"]();
}
</script>}
on-event-type
syntax. The example
code below demonstrates how to bind to an event.
<script src="~/jqwidgets/jqxradiobutton.js"></script>
<jqx-radio-button on-checked="eventHandler()">3 Months Contract</jqx-radio-button>
<jqx-radio-button >6 Months Contract</jqx-radio-button>
@section scripts {
<script type="text/javascript">
function eventHandler(event) {
}
</script>
}