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

Using Window with MVVM (Clearer)

1 Answer 46 Views
Window
This is a migrated thread and some comments may be shown as answers.
Stacey
Top achievements
Rank 1
Stacey asked on 18 Nov 2013, 06:57 PM
I posted this already, but I suppose I was a bit vague, so I will post this once more with more information in hopes I can get it addressed.

I have a situation where I want to display small pop up windows to edit some data in a view model that is made with KendoUI.For sake of example, the ViewModel is something like this;
{
    Name: "Root",
    Collection: [
         {
            Name: "Item1",
            Price: 0.00,
            Quantity: 0,
            Tags: [ "tag1", "tag2", "tag3" ],
            onEdit: function(e){
                // open window and edit Item1
            }
         },
         {
            Name: "Item2",
            Price: 0.00,
            Quantity: 0,
            Tags: [ "tag1", "tag2", "tag3" ],
            onEdit: function(e){
                // open window and edit Item2
            }
         }
    ]
}
What I want to do seems like it should be simple. I am rendering a template with this, and there is a button that has data-bind="click: onEdit" on it. When the user clicks this, I want to render a KendoUI Window that lets them edit that item, when they confirm it, it updates the item in the actual view model.

I have already been told to use the "grid" system, but for what I am doing I have no interest in the grid right now. I love the grid, the grid is phenomenal. But what my customer wants will not really work with the way the grid layout, even with custom skinning. I need to use the actual kendo templates.

Is this even possible?

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 20 Nov 2013, 11:45 AM
Hello Stacey,

This thread duplicates:

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