or
@(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." } });});custom: function (input) { if (input.is("[name='LogicalName']") && input.val() != "") { $http.post("odata/Entities/IsNameUnique", { logicalName: input.val() }).success(function (data, status, headers, config) { if (!data.value) { input.attr("data-custom-msg", "Name is not unique"); return false } return true;}); } }