or
if
($(e.target).parent().hasClass(
'hb-hasView'
) ){
hb.addTab({text:$(e.target).text(),content:
'<br>'
});
var
view =
'views/'
+$(e.target).parent().attr(
'hb-view'
)+
".htm"
;
$.ajax({url: view})
.success(
function
(html){
$(
'#tabSet div:last-child'
).append(html);
$(
'#tabSet div:last-child'
).children().each(
function
(){
var
$
this
= $(
this
);
if
( is(
'drop-list'
) ){
$
this
.kendoComboBox();
}
if
( is(
'date-range'
) ){
$
this
.kendoDateTimePicker();
}
if
( is(
'grid'
) ){
$
this
.kendoGrid();
}
if
( is(
'chart'
) ){
$
this
.kendoChart();
}
function
is(DOMclass){
return
$
this
.hasClass(DOMclass);
}
});
});
}
<
form
>
<
div
>
Start Time<
input
class
=
"start date-range"
value
=
"10/10/2011"
hb-for
=
"*"
/>
End Time<
input
class
=
"end date-range"
value
=
"10/10/2011"
hb-for
=
"*"
/>
</
div
>
<
div
class
=
"search-button"
><
input
type
=
"submit"
value
=
"Search"
hb-for
=
"*"
/></
div
>
<
div
class
=
"search-button"
><
input
type
=
"submit"
value
=
"Reset"
hb-for
=
"*"
/></
div
>
<
details
id
=
"aopt-title"
>
<
summary
>Advanced Options</
summary
>
<
div
id
=
"advanced-options"
>
<
label
class
=
"ddl1"
>
<
div
>Purchase Type:</
div
>
<
select
id
=
"test1234"
class
=
"drop-list"
hb-for
=
"*"
>
<
option
>************</
option
>
<
option
>************</
option
>
<
option
>************</
option
>
</
select
>
</
label
>
<
label
class
=
"ddl2 "
>
<
div
>Channel:</
div
>
<
select
class
=
"drop-list"
hb-for
=
""
>
<
option
>************</
option
>
<
option
>************</
option
>
<
option
>************</
option
>
</
select
>
</
label
>
<
label
class
=
"ddl3"
>
<
div
>Order Conf:</
div
>
<
select
class
=
"drop-list"
hb-for
=
""
>
<
option
>************</
option
>
<
option
>************</
option
>
<
option
>************</
option
>
</
select
>
</
label
>
<
label
class
=
"ddl1"
>
<
div
>Skills:</
div
>
<
select
class
=
"drop-list"
hb-for
=
""
>
<
option
>************</
option
>
<
option
>************</
option
>
<
option
>************</
option
>
</
select
>
</
label
>
<
label
class
=
"ddl2"
>
<
div
>Contact Center:</
div
>
<
select
class
=
"drop-list"
hb-for
=
""
>
<
option
>************</
option
>
<
option
>************</
option
>
<
option
>************</
option
>
</
select
>
</
label
>
<
label
class
=
"ddl3"
>
<
div
>Iconic/.com:</
div
>
<
select
class
=
"drop-list"
hb-for
=
""
>
<
option
>************</
option
>
<
option
>************</
option
>
<
option
>************</
option
>
</
select
>
</
label
>
<
label
class
=
"ddl1"
>
<
div
>Operator:</
div
>
<
select
class
=
"drop-list"
hb-for
=
""
>
<
option
>************</
option
>
<
option
>************</
option
>
<
option
>************</
option
>
</
select
>
</
label
>
<
label
class
=
"ddl2"
>
<
div
>Page Size:</
div
>
<
select
class
=
"drop-list"
hb-for
=
""
>
<
option
>************</
option
>
<
option
>************</
option
>
<
option
>************</
option
>
</
select
>
</
label
>
<
label
class
=
"ddl4"
>
<
div
>Survey Question:</
div
>
<
select
class
=
"drop-list"
hb-for
=
""
>
<
option
>************************************************</
option
>
<
option
>************************************************</
option
>
<
option
>************************************************</
option
>
</
select
>
</
label
>
</
div
>
</
details
>
</
form
>
<
div
class
=
"data-portion"
>
<
div
id
=
"grid"
class
=
"grid"
></
div
>
<
div
id
=
"chart"
class
=
"chart"
></
div
>
</
div
>
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
>