Mashup Builder > Widgets > Standard Widgets > Collection Widget (Themeable) > Configuring Data Loading for the Collection
Configuring Data Loading for the Collection
You can configure the ItemLoadingBehavior property in the Collection widget to control how mashups are loaded and managed as users interact with the collection at runtime. For example, when scrolling, filtering, or sorting the collection.
Load/Unload—Load mashups dynamically when scrolling and unload them when they are no longer in view. Unloaded mashups are cached and when a cached mashup scrolls into view, they are loaded again from memory. Changes done to mashup content at runtime are not preserved when a mashup is reloaded from memory. Use this mode when you are showing a large number of items in the collection but want to keep the widget responsive and preserve the state of individual mashups after users interact with them.
Load On Demand—Load mashups dynamically when scrolling and keep them loaded when they are no longer in view. Caching is not used and new mashups are continuously loaded when scrolling. Use this mode when the collection size is moderate and you want to display the most current data and preserve the state of individual mashups after users interact with them.
Load All—Loads every mashup for all items in the collection. This mode can affect performance when the collection is large or contains complex mashups. Use this mode for smaller collections where the availability of all mashups is more important than performance. Users can quickly navigate through the entire collection without waiting for loading.
Was this helpful?