Skip to content

Instantly share code, notes, and snippets.

@sagar-ganatra
Created June 20, 2012 10:08
Show Gist options
  • Save sagar-ganatra/2959194 to your computer and use it in GitHub Desktop.
Save sagar-ganatra/2959194 to your computer and use it in GitHub Desktop.
ViewModel
<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