Using Window with MVVM (Clearer)

2 posts, 0 answers
  1. Stacey
    Stacey avatar
    55 posts
    Member since:
    Aug 2013

    Posted 18 Nov 2013 Link to this post

    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?
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2877 posts

    Posted 20 Nov 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
Back to Top