or
class Contact {
Phone WorkPhone {get;set;}
Phone HomePhone {get;set;}
}
class Phone {
string PhoneNumber {get;set;}
bool IsPrimary {get;set;}
}
@Html.EditorFor(m=>m.WorkPhone)
@Html.EditorFor(m=>m.HomePhone)
@Html.TextBoxFor(m => m.PhoneNumber)
@Html.CheckBoxFor(m => m.IsPrimary)
$("#formId).kendoValidator().data("kendoValidator");
Webpage error details
Message: Syntax error, unrecognized expression: input:hidden[name=WorkPhone.IsPrimary]
Line: 2
Char: 59140
Code: 0
URI: .../Scripts/kendo/2012.3.1114/jquery.min.js
Is there fix for this?
<
div
data-role
=
"splitview"
id
=
"events-split-view"
>
<
div
data-role
=
"pane"
>
<
div
data-role
=
"view"
data-show
=
"testDataShow"
>
Side Pane
</
div
>
</
div
>
<
div
data-role
=
"pane"
data-layout
=
"main-default"
>
<
div
data-role
=
"view"
>
Main Pane
</
div
>
<
div
data-role
=
"layout"
data-id
=
"main-default"
>
<
div
data-role
=
"header"
>
<
div
data-role
=
"navbar"
>
<
a
data-role
=
"button"
href
=
"#contact-details-view"
data-align
=
"right"
data-target
=
"_top"
>Go back</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
script
>
function testDataShow() {
alert("View's data-show called");
}
</
script
>