or
<
li
><
a
class
=
"popup"
href
=
"gosomehwereelse"
>click me</
a
></
li
>
$("a.popup").click(function (e) {
e.preventDefault();
// do something...
});
$(document).ready(
function
() {
var
viewModel = kendo.observable({
email:
"someemail@somesite.com"
,
password:
"p@ssword"
,
passwordConfirmation:
"p@ssword"
,
confirmed:
false
,
register:
function
(e) {
e.preventDefault();
this
.set(
"confirmed"
,
true
);
},
startOver:
function
() {
this
.set(
"confirmed"
,
false
);
this
.set(
"email"
,
false
);
this
.set(
"password"
,
"Male"
);
this
.set(
"passwordConfirmation"
,
"John"
);
}
});
kendo.bind($(
"#example"
), viewModel);
});
<
div
id
=
"example"
class
=
"k-content"
>
<
div
id
=
"loginForm"
>
<
div
id
=
"description"
>
<
p
>Some Text</
p
>
</
div
>
<
div
id
=
"login"
>
<
h2
>
Want us to get in touch with you</
h2
>
<
br
/>
<
form
>
<
label
>
Email:
<
input
data-bind
=
"value: email"
/></
label
>
<
br
/>
<
br
/>
<
label
>
Password:
<
input
data-bind
=
"value: password"
/></
label
>
<
br
/>
<
br
/>
<
label
>
Confirmation:
<
input
data-bind
=
"value: passwordConfirmation"
/></
label
>
<
br
/>
<
br
/>
<
button
data-bind
=
"enabled: agreed, click: register"
>
Register</
button
>
<
br
/>
<
div
data-bind
=
"visible: confirmed"
>
<
h4
>
Confirmation</
h4
>
<
div
>
Thank you for your registration, <
span
data-bind
=
"text: email"
></
span
>
<
br
/>
<
br
/>
<
button
data-bind
=
"click: startOver"
>
Start Over</
button
>
</
div
>
</
div
>
</
form
>
</
div
>
</
div
>
</
div
>
$(
"#myList"
).kendoGrid({
dataSource: mySource
columns: [
{ field:
"SupplierName"
, title:
"Vendor Name:"
},
{ field:
"ColorCode"
, title:
"Vendor Status"
, template:
'<div style="width: 50px; height:20px; background-color: #FF16DC04">#= ColorCode #</div>'
}]
});