Hello, I am implementing VirtualizedDataSource in which total count of items is not known before first page of data items is returned. But returning anything different than positive number and undefined from getCount method of VirtualizedDataSource
results in exception - "Error: data adapter should return CountResult.unknown, CountResult.failure, or a non-negative integer for the count." I have traced the error message in ui.js library file to line 7955 and
if (!isNonNegativeInteger(count) && count !== undefined) {
throw new WinJS.ErrorFromName("WinJS.UI.ListDataSource.InvalidRequestedCountReturned", strings.invalidRequestedCountReturned);
}
It is clear that CountResult enumeration is not considered at all. Beside that CountResult.failure is not defined at all.
Please do someone know workaround for this?
Regards, Martin