You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposal: allow incremental loading for grouped collections
Currently CollectionViewSource will ignore ISupportIncrementalLoading interface if the item source is a grouped list. Even implementing the behavior would lead into catastrophic failures at runtime (Not sure if this is still the case, actually, but it was last time I tried).
Developers usually have to end up with (not really optimal) workaround solutions, such as feeding the ListView with a ObservableCollection<object> collection and including group headers directly in it, having to deal with ItemTemplateSelectors, ItemContainerStyleSelectors, and so on, and other stuff, such multiple/single selection handling. This would also end up with a lot of compromises in terms of UI, as in the following example, that are kind of confusing for the users:
Summary
ISupportIncrementalLoading interface should be supported by grouped CollectionViewSource and ListView.
Rationale
Lists grouped by date and retrieved by a remote endpoint need this.
Current possibilities require too many workarounds.
Migrating to ItemsRepeater would require too much work in many scenarios (Especially as it doesn't support incremental loading as well).
Scope
Capability
Priority
This proposal will allow developers to implement incremental loading in grouped CollectionViewSources
Must
Important Notes
Open Questions
The text was updated successfully, but these errors were encountered:
In a similar fashion, CollectionViewSources don't implement IItemsRangeInfo, which is classically used in random access data virtualization.
Both ISupportIncrementalLoading and IItemsRangeInfo are usually the go-tos for data virtualization in ListViews, and they're rather hard to use in grouped collections without workarounds as mentioned.
Both ISupportIncrementalLoading and IItemsRangeInfo seem targeted towards flat collections, not collection of collections, so I'm not entirely sure how these map in grouped cases. @MikeHillberg any ideas ?
Proposal: allow incremental loading for grouped collections
Currently
CollectionViewSource
will ignoreISupportIncrementalLoading
interface if the item source is a grouped list. Even implementing the behavior would lead into catastrophic failures at runtime (Not sure if this is still the case, actually, but it was last time I tried).Developers usually have to end up with (not really optimal) workaround solutions, such as feeding the
ListView
with aObservableCollection<object>
collection and including group headers directly in it, having to deal with ItemTemplateSelectors, ItemContainerStyleSelectors, and so on, and other stuff, such multiple/single selection handling. This would also end up with a lot of compromises in terms of UI, as in the following example, that are kind of confusing for the users:Summary
ISupportIncrementalLoading
interface should be supported by groupedCollectionViewSource
andListView
.Rationale
ItemsRepeater
would require too much work in many scenarios (Especially as it doesn't support incremental loading as well).Scope
Important Notes
Open Questions
The text was updated successfully, but these errors were encountered: