or
var data = kendo.observable({ listing: { price: 12300 }, formatted: { total_due: function() { // this works return kendo.toString((this.parent().get("listing.price")* this.parent().get("quantity"))/100, "c"); // this crashes with an error return kendo.toString(this.parent().get("total_due")/100, "c"); } }, quantity: 1, total_due: function() { return this.get("listing.price")* this.get("quantity") } })var lv = $('#lwTest');lv.kendoListView({ selectable: "single", template: "<li><span class='email'>${email}</span> <span style='font-size: 80%; font-weight: bold'>${role}</span></li>", dataSource: the_items});// Set local storage values localStorage.setItem("Username", username); localStorage.setItem("Password", password); localStorage.setItem("DisplayName", "Woot Woot - " + username ); utils.navigate("#menu-view");define(["kendo"], function (kendo) { return { init: function (initEvt) {}, beforeShow: function (beforeShowEvt) {}, show: function (showEvt) { }, viewModel: kendo.observable({ displayName: localStorage.getItem("DisplayName") }) };});