I'm using MVVM and I want to use a window to display content when a button is clicked in a grid. The content is empty in the window. If I don't use a window then my fields are populated. Is there a way around this?
$("#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
});