This is a migrated thread and some comments may be shown as answers.

Window content not shown using MVVM

1 Answer 108 Views
Window
This is a migrated thread and some comments may be shown as answers.
Felipe Casanova
Top achievements
Rank 1
Felipe Casanova asked on 22 May 2012, 01:47 PM
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
    });

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 23 May 2012, 02:17 PM
Hello Matt,

I am afraid the code snippet that you provided is not sufficient in order to spot what is causing this issue. Could you please provide more details or even better - a runnable project that could be inspectед in details?
 

Regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Window
Asked by
Felipe Casanova
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or