WinJS.UI.VirtualizedDataSource constructor

Applies to Windows and Windows Phone

Initializes the VirtualizedDataSource base class of a custom data source.

Syntax


var virtualizedDataSource = new WinJS.UI.VirtualizedDataSource(listDataAdapter, options);

Parameters

listDataAdapter

Type: IListDataAdapter

The object that supplies data to the VirtualizedDataSource.

options

Type: Object

An object that can contain properties that specify additional options for the VirtualizedDataSource. It supports these properties:

cacheSize

A number that specifies the minimum number of unrequested items to retain, in case they are requested.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

Library

Ui.js

See also

VirtualizedDataSource

 

 

Show:
© 2014 Microsoft