I'm trying to get custom validation working on a NumericTextBox. I've read the article on custom validation, but I can figure out to get the validator to validate the textbox. This is a read only textbox that gets set by several other functions. I'm trying to check if it's greater than 0.
@(Html.Kendo().NumericTextBox<decimal>().HtmlAttributes(new { style = "width: 80px"}) .Name("totalLTDandLife") .Format("c2") .Spinners(false) )$(function () { $("form").kendoValidator({ rules: { selectCoverage: function (input) { if (input.is("[name=totalLTDandLife]")) { return input.val() > 0; } return true; } }, messages: { selectCoverage: "Please select either LTD coverage or Term Life coverage." } });});