This sample demonstrates how to group items in a ListView and how to use it with the SemanticZoom control.
It uses the List.createGrouped method to create a grouped version of a WinJS.Binding.List. Then it uses two ListView controls and a SemanticZoom to create separate zoomed-out and zoomed-in views of the data.
For more info about the concepts and APIs demonstrated in this sample, see these topics:
- How to group items in a ListView
- Quickstart: adding a SemanticZoom
- Guidelines and checklist for SemanticZoom
- SemanticZoom templates
- Quickstart: adding Windows Library for JavaScript controls and styles
- Quickstart: adding a ListView
- Item templates for grid layouts
- Item templates for list layouts
- ListView reference
- SemanticZoom reference
This sample is written in HTML, CSS, and JavaScript. For the XAML version, see the XAML grouped data controls sample.
To obtain an evaluation copy of Windows 8.1, go to Windows 8.1.
To obtain an evaluation copy of Microsoft Visual Studio 2013, go to Visual Studio 2013.
Note For Windows 8 app samples, download the Windows 8 app samples pack. The samples in the Windows 8 app samples pack will build and run only on Microsoft Visual Studio 2012.
Related topics
- How to group items in a ListView
- Quickstart: adding a SemanticZoom
- Guidelines and checklist for SemanticZoom
- Quickstart: adding a ListView
- Quickstart: adding Windows Library for JavaScript controls and styles
- Item templates for grid layouts
- Item templates for list layouts
- ListView reference
- SemanticZoom reference
Related technologies
Windows 8 apps using JavaScript, ListView , SemanticZoomOperating system requirements
| Client | |
|---|---|
| Server |
Build the sample
- Start Visual Studio 2013 and select File > Open > Project/Solution.
- Go to the directory in which you unzipped the sample. Go to the directory named for the sample, and double-click the Visual Studio 2013 Solution (.sln) file.
- Press F7 or use Build > Build Solution to build the sample.
Run the sample
To debug the app, press F5 or use Debug > Start Debugging. To run the app without debugging, press Ctrl+F5 or use Debug > Start Without Debugging.
To switch between the different SemanticZoom views:
| Input mechanism | Zoom out | Zoom in |
|---|---|---|
| Touch | Pinch out | Pinch in, tap |
| Keyboard | Ctrl + Minus sign, Enter, Space | Ctrl + Plus sign, Enter, Space |
| Mouse | Ctrl + Rotate the mouse wheel backward | Ctrl + Rotate the mouse wheel forward |