jQWidgets
  • Docs
  • License and Pricing
  • Services
  • Community
    • Forums
    • Blogs
    • Follow Us
    • Client Login
  • About
    • About Us
    • Contact Us
    • FAQ
  • Products
    • Angular
    • React
    • Vue
    • jQuery
    • Web Components
    • Blazor
    • Templates
  • Download

ASP .NET Core MVC Demos

  • Javascript/jQuery
  • Angular
  • Vue
  • React
  • Web Components
  • Blazor
  • ASP .NET MVC
  • Templates
  • Theme Builder
Show Demo List

ASP .NET Core MVC UI Components

  • jqxGrid
  • jqxTabs
  • jqxTextArea
  • jqxWindow
  • jqxKnob
  • jqxPanel
  • jqxChart
  • jqxMenu
  • jqxInput
  • jqxDocking
  • jqxGauge
  • jqxValidator
  • jqxScheduler
  • jqxTree
  • jqxPasswordInput
  • jqxNotification
  • jqxBarGauge
  • jqxSortable
  • jqxTreeGrid
  • jqxNavigationBar
  • jqxMaskedInput
  • jqxPopOver
  • jqxExpander
  • jqxLoader
  • jqxDataTable
  • jqxListMenu
  • jqxComplexInput
  • jqxTooltip
  • jqxRating
  • jqxDraw
  • jqxTreeMap
  • jqxToolBar
  • jqxFormattedInput
  • jqxColorPicker
  • jqxRangeSelector
  • jqxDragDrop
  • jqxEditor
  • jqxComboBox
  • jqxNumberInput
  • jqxScrollView
  • jqxSlider
  • Bootstrap Tag Helpers
  • jqxRibbon
  • jqxDropDownList
  • jqxDateTimeInput
  • jqxProgressBar
  • jqxScrollBar
  • jqxPanel
  • jqxLayout
  • jqxListBox
  • jqxCalendar
  • jqxFileUpload
  • jqxSplitter
  • jqxValidator
  • jqxDockingLayout
  • jqxButtons
  • jqxKanban
  • jqxBulletChart
  • Bootstrap Tag Helpers

jqxValidator

  • Default Functionality
Theme:
Light
  • Demo
  • View

ASP .NET MVC Validator Tag Helper

The jqx-validator tag helper adds a Validator Chart component to a web page.
@using jQWidgets.AspNetCore.Mvc.TagHelpers
@{
ViewData["Title"] = "ASP .NET MVC Validator Example";
List<KeyValuePair<string, object>> settings = new List<KeyValuePair<string, object>>()
{
new KeyValuePair<string, object>("rules", new List<ValidatorRule>()
{
new ValidatorRule() { Input ="#username", Action="keyup, blur", Rule="required" },
new ValidatorRule() { Input ="#password", Action="keyup, blur", Rule="required" }
}
),
new KeyValuePair<string, object>("selector", "form"),
new KeyValuePair<string, object>("theme", ViewData["Theme"])
};
}
<script>
var validator;
function getValidator(instance) {
validator = instance;
}
function validate() {
validator.validate();
}
</script>
<label>ASP .NET Core MVC Validator Example</label><br/><br/>
<jqx-validator hintType="label" instance="getValidator()" settings="settings"></jqx-validator>
<form class="form" id="form" target="form-iframe" method="post" action="login.php" style="width: 650px;">
<div>
<h2>Login Demo</h2>
</div>
<label style="margin-top:10px;">Username:</label>
<div style="margin-top:10px;">
<jqx-input height="25" theme="@ViewData["theme"]" type="text" id="username" name="username"></jqx-input>
</div>
<label>Password:</label>
<div style="margin-top:10px;">
<jqx-passwordinput height="25" theme="@ViewData["theme"]" type="password" id="password" name="password"></jqx-passwordinput>
</div>
<div style="margin-top:10px;">
<jqx-checkbox theme="@ViewData["theme"]" name="rememberme" id="rememberme">Keep me logged in on this computer</jqx-checkbox>
</div>
<div style="margin-top:10px;">
<jqx-button theme="@ViewData["theme"]" on-click="validate()" id="loginButton" type="submit" value="Login"></jqx-button>
</div>
</form>
jQWidgets
  • Facebook
  • Twitter
  • Demo
  • Download
  • Documentation
  • License and Pricing
  • Services
  • Forums
  • About
  • Terms of Use
  • Privacy Policy
  • Contact Us

jQWidgets © 2011-2025. All Rights Reserved.