This is a migrated thread and some comments may be shown as answers.
Bind List (UL) to a data source
0 Answers 41 Views
This is a migrated thread and some comments may be shown as answers.
Jayantha
Top achievements
Rank 1
Jayantha asked on 13 Jun 2012, 04:43 AM
I want to have two list (left , right ) and need to drag and drop li elements between them. The problem is how can I make this list observable. Now even though I have created the drag and drop functionality when I try to get the view model It hasn't changed.
Here is my view model,

     
   var model = kendo.observable({
    User: kendo.observable(data),
    displayGreeting: function () {
        var name = this.get("name");
        alert("Hello, " + name + "!!!");
    },
    save: function () {
        var user = JSON.stringify(this.get("User"));
        DataService.SaveUser(user, function (data) {
            alert(data);
        });
    }
});
kendo.bind($("#mainDiv"), model);


And here is my ul 

 <ul id="resourceGroupUl" class="resourceGroupUl  SelectedLis" data-role="listview" data-template="ul-template" data-bind="source:User.ResourceGroups">
</ul>

No answers yet. Maybe you can help?

Asked by
Jayantha
Top achievements
Rank 1
Share this question
or