TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Implement the Kendo Numeric Text box with MVVM Pattern
Gowtham K
Feb 21
2016
Code
3.3
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
Decimal Format
<!DOCTYPE html>
<html>
<head>
<meta charset=
"utf-8"
>
<title>Untitled</title>
<link rel=
"stylesheet"
href=
"http://kendo.cdn.telerik.com/2016.1.112/styles/kendo.common.min.css"
>
<link rel=
"stylesheet"
href=
"http://kendo.cdn.telerik.com/2016.1.112/styles/kendo.rtl.min.css"
>
<link rel=
"stylesheet"
href=
"http://kendo.cdn.telerik.com/2016.1.112/styles/kendo.default.min.css"
>
<link rel=
"stylesheet"
href=
"http://kendo.cdn.telerik.com/2016.1.112/styles/kendo.mobile.all.min.css"
>
<script src=
"http://code.jquery.com/jquery-1.9.1.min.js"
></script>
<script src=
"http://kendo.cdn.telerik.com/2016.1.112/js/angular.min.js"
></script>
<script src=
"http://kendo.cdn.telerik.com/2016.1.112/js/jszip.min.js"
></script>
<script src=
"http://kendo.cdn.telerik.com/2016.1.112/js/kendo.all.min.js"
></script></head>
<body>
<div id=
"example"
>
<input data-role=
"numerictextbox"
data-format=
"d"
data-bind="visible: isVisible,
enabled: isEnabled,
style=
"width: 180px"
/>
</div>
<script>
var
viewModel = kendo.observable({
selectedNumber: 0,
isEnabled:
true
,
isVisible:
true
,
});
kendo.bind($(
"#example"
), viewModel);
</script>
</body>
</html>
Currency Format
<!DOCTYPE html>
<html>
<head>
<meta charset=
"utf-8"
>
<title>Untitled</title>
<link rel=
"stylesheet"
href=
"http://kendo.cdn.telerik.com/2016.1.112/styles/kendo.common.min.css"
>
<link rel=
"stylesheet"
href=
"http://kendo.cdn.telerik.com/2016.1.112/styles/kendo.rtl.min.css"
>
<link rel=
"stylesheet"
href=
"http://kendo.cdn.telerik.com/2016.1.112/styles/kendo.default.min.css"
>
<link rel=
"stylesheet"
href=
"http://kendo.cdn.telerik.com/2016.1.112/styles/kendo.mobile.all.min.css"
>
<script src=
"http://code.jquery.com/jquery-1.9.1.min.js"
></script>
<script src=
"http://kendo.cdn.telerik.com/2016.1.112/js/angular.min.js"
></script>
<script src=
"http://kendo.cdn.telerik.com/2016.1.112/js/jszip.min.js"
></script>
<script src=
"http://kendo.cdn.telerik.com/2016.1.112/js/kendo.all.min.js"
></script></head>
<body>
<div id=
"example"
>
<input data-role=
"numerictextbox"
data-format=
"c"
data-bind="visible: isVisible,
enabled: isEnabled,
style=
"width: 180px"
/>
</div>
<script>
var
viewModel = kendo.observable({
selectedNumber: 0,
isEnabled:
true
,
isVisible:
true
,
});
kendo.bind($(
"#example"
), viewModel);
</script>
</body>
</html>
Kendo UI
Jquery