or
that.data = function(data) { var record, getter, idx, length, modelInstance = new that.model(); data = dataFunction(data); if( isEmptyObject(data) ) // Added this fix to prevent errors if no data was returned return {}; if (!isEmptyObject(getters) ) { for (idx = 0, length = data.length; idx < length; idx++) { record = data[idx]; for (getter in getters) { record[getter] = modelInstance._parse(getter, getters[getter](record)); } } } return data;}<ul id="items" data-bind="source: items"></ul>var data = activitiesSource.view(), selected = $.map(this.select(), function (item) { return data[$(item).index()]; });viewModel.set("selectedItem", selected);<div class="js-item-details"> <h2 data-bind="text: selectedItem.Title"></h2> <h3 data-bind="text: selectedItem.Descritpion"></h3></div>selectable: "row"c.ui.Selectable is not a constructor $("#productsGrid").kendoGrid({ dataSource: dataSoucrce, columns: columns, scrollable: true, groupable: true, sortable: true, pageable: true, filterable: true, selectable: "multiple,row", //put query box in toolbar toolbar: "<input class='span3' type='text' id='productsQuery'/>", //init query box's autocomplete dataBound: function(){ if(typeof $("#productsQuery").data("kendoAutoComplete") == "undefined") { $("#productsQuery").kendoAutoComplete({ minLength: 1, dataTextField: "key", filter: 'contains', change: function(){ if($("#productsQuery").val() == "") { $("#productsGrid").data("kendoGrid").dataSource.filter({}); } }, placeholder: "Search product key...", //use the datasource of productsGrid dataSource: $("#productsGrid").data("kendoGrid").dataSource });} }});<Button android:id="@+id/btn_Next" android:layout_width="100dp" android:layout_height="40dp" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:layout_marginRight="30dp" android:layout_marginBottom="30dp" android:text="Next" android:onClick="btn_NextClick" android:Style="BlueOpal" />