0

我想做分组。winjs中的列表视图项目。任何人都可以建议我

4

2 回答 2

1

您可以查看我的 codeShow 应用程序,它在 ListViews 演示中包含一个超级简单的示例。该应用程序位于http://aka.ms/codeshowapp,完整的源代码位于http://codeshow.codeplex.com

于 2013-10-21T03:10:03.623 回答
0

If you have your basic data in a WinJS.Binding.List, call that list object's createGrouped method, which returns a now-grouped projection. You then use that projection's dataSource property as the itemDataSource for the ListView. You can also use that projection's groups.dataSource property as a groupDataSource for the ListView's groups.

See How to group items in a ListView for details.

于 2013-10-21T00:06:28.833 回答