or
var div = $('#test-accordion');div.kendoPanelBar({ expandMode: "single"});var use_animation = false;var li = div.find('li.k-item:first');div.data('kendoPanelBar').expand(li, use_animation).select(li);div.data('kendoPanelBar').collapse("*", use_animation);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});