List.dataSource property

0 out of 2 rated this helpful - Rate this topic

Gets the data source for the list. The only purpose of this property is to adapt a List to the data model that is used by ListView and FlipView.

Syntax


var source = list.dataSource;

Property value

Type: Object

The data source for the list.

Examples

The following code shows how to assign the data source of a list to a ListView control.


var list = new WinJS.Binding.List();
var listView = document.querySelector(“.win-listview”);
listView.winControl.itemDataSource = list.dataSource;


Requirements

Namespace

WinJS.Binding

Library

Base.js

See also

List

 

 

Build date: 12/5/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.