Repeater.onitemsreloading event

Applies to Windows and Windows Phone

Raised after the Repeater control's underlying data has been updated but before the updated HTML has been reloaded.

Syntax


<div 
    data-win-control="WinJS.UI.Repeater" 
    data-win-options="{onitemsreloading : handler}">
</div>


function handler(eventInfo) { /* Your code */ }
 
// addEventListener syntax
repeater.addEventListener("itemsreloading", handler);
repeater.removeEventListener("itemsreloading", handler);


Event information

SynchronousNo
BubblesYes
CancelableYes

 

Event handler parameters

eventInfo

Type: CustomEvent

An object that contains information about the event. The detail property of this object contains the following sub-properties:

detail.affectedElements

The DOM elements that will be updated.

detail.setPromise

A Promise that completes after the reloading animations have completed.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI

Library

Ui.js

See also

Repeater

 

 

Show:
© 2014 Microsoft