or
<li>Starts: <span data-role="calendar" data-bind="value: selectedBlock.data.StartDate"></span></li>public class LoadSearchingReturn{ [DataMember] public IEnumerable<Results> SearchingResults { get; set; } [DataMember] public IEnumerable<string> Errors {get;set;} [DataMember] public int TotalResults { get; set; }}SearchingResults is what displays in my grid and I use the Total Results inside my schema like: dataSource: { schema: { data: "d.SearchingResults", total: function (data) { return data.d.TotalResults; } },data-bind="style: { backgroundImage: selectedPhoto }"<ul data-role="listview" data-style="inset" data-type="group"> <li> Africa <ul> <li data-icon="toprated"><input name="MyCheckBox" id="MyCheckBox" type="checkbox" data-role="switch"/></li> </ul> </li></ul>$("#contactsGrid").delegate(".details-button", "click", function (e) { e.preventDefault(); //debugger; contactViewModel.set("selectedContact", $("#contactsGrid").data("kendoGrid").dataItem($(this).closest("tr"))); wnd.center().open(); // this wipes the newly selected contact details });New documentation portal feature requests....
MVVM:
So I do know the answers to some of these, I just would like docs\samples on these scenarios…I’m trying to move a couple people onto MVVM, but the current docs are pretty bad (please, no offense intended).
------------
UNRELATED (the best kind of related):
Feature request: KnockoutJS has the mapping plugin to plug remote data into the model…right now we have to do an $.each loop…
//Lamefor (var field in jsonData) { viewModel.set(field, jsonData[field]); }I was
hoping we could get something like
//AwesomeviewModel.load(jsonData)------------
Wishlist: Each doc sample contains a fiddle to play with\fork so we can help flesh out demos\samples…
data-bind="checked: AvailableToHamilton, click: shareWith"success: function (e) { setTimeout(function(){ viewModel.getTotalCapacity(); }, 100);}