Created
June 20, 2012 10:08
-
-
Save sagar-ganatra/2959194 to your computer and use it in GitHub Desktop.
ViewModel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="../../js/jquery.min.js" /> | |
<script src="../../js/kendo.all.min.js" /> | |
<script> | |
$('document').ready(function(){ | |
var viewModel = kendo.observable({ | |
fname: "Sagar", | |
lname: "Ganatra", | |
fullname: function() { | |
return this.get("fname") + ' ' + this.get("lname"); | |
} | |
}); | |
kendo.bind($('form#testView'),viewModel); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment