Partager via


List.notifyReload method

Forces the list to send a reload notification to any listeners.

Syntax

list.notifyReload();

Parameters

This method has no parameters.

Return value

This method does not return a value.

Remarks

notifyMutated and notifyReload are generally used in scenarios where you have projections (that is, grouping, filtering, and sorting) which are done over properties of your data objects that have changed. For example, consider a list of employees, and you have a filtered version of that list which only contains those who live in Washington state:

var employees = getEmployees();

var local = employees.getFiltered(function (employee) {
  return employee.homeAddress.state.toLowerCase() === "wa";
});

Now if you update the employee information in some way, the filtered projection will not be updated. You can either run through and touch each item and say that it was mutated (which will cause the filter to be re-run) or you can call notifyReload which will simply tell the projection to start over.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Binding

See also

List

notifyMutated