jsbeckr
jsbeckr

Reputation: 1193

Remove group from WinJS.Binding.List

I have a List which is a DataSource for my ListView. When I add new Items to the List, everything works fine and the ListView is updated. However when I try to remove items from the List nothing happens... the ListView just doesn't care. How can I do that?

In fact is there an easy way to remove all Items from a certain group (I use the GroupedSortedListProjection as a DataSource)?

Thanks!

Upvotes: 1

Views: 551

Answers (1)

Jeferson Belzarena
Jeferson Belzarena

Reputation: 59

Have you tried the below

Kind of manually reset the list (creating a new object on it) list = new WinJS.Binding.List();

notify the change done.

list.notifyReload();

this should reset your list (removing all the items from it)

Upvotes: 1

Related Questions