or
var viewModel = kendo.observable({
title = "Example Title",
timetable: [
{ startHour: "11:00", endHour: "13:00", days: [ 1 ], trainerId: 1 },
{ startHour: "12:00", endHour: "14:30", days: [ 3, 5 ], trainerId: 2 }
]
});
In this case I need to validate the following:
This validation is not directly bound to any HTML element, as timetable is a complex property which is rendered using templates.
All kendoValidator examples I've seen work directly with HTML inputs and their attributes.
In other words, is there a possibility to validate the model's business rules, but not HTML inputs?
Thank you.
@(Html.Kendo().MobileDrawer() .Name("main-menu") .HtmlAttributes(new { style = "width: 210px" }) .Title("Mobile App") .Views("Index") .Content(obj =>Html.Kendo().MobileListView() .Items(root => { root.AddLink().Icon("inbox").Url("Index", "Outage").Text("Report New Outage");root.AddLink().Icon("inbox").Url("About", "Home").Text("About"); }) ) )
/* Kendo Editor styles to support resizing*/table.k-editor .k-content { resize: vertical;}.editor-wrap { position: relative;} .editor-wrap .k-overlay { position: absolute; opacity: 0; z-index: 1; } .editor-wrap .k-resize-se { position: absolute; z-index: 2; bottom: 6px; right: 6px; height: 26px; width: 26px; } .editor-wrap > .k-editor { height: 100%; }