iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Crosslight development team has managed to implement incremental loading. It is the process of loading data in small chunks where only a small amount of data is initially loaded, then subsequent data will be incrementally loaded when user demand.
For more detail information about how to enable the incremental loading in Crosslight please check the article in here.
In order to enable incremental loading with the App Framework, simply inherit your ViewModel from DataListViewModelBase<TModel, TRepository> class and set the EnableIncrementalLoading property to true.
Following snippet code shows a sample of ViewModel with incremental loading enabled.
namespace MyInventory.ViewModels { public class ItemListViewModel : DataListViewModelBase<Item, IItemRepository> { private ItemQueryDefinition _queryDefinition = null; public ItemListViewModel() { // configure data behaviors this.EnableRefresh = true; this.EnableIncrementalRefresh = true; this.EnableIncrementalLoading = true; this.EnableAsyncFilter = true; this.IncrementalLoadingSize = 20; // commands this.LoadIncrementalCommand = new DelegateCommand(ExecuteLoadIncrementalCommand, CanExecuteLoadIncrementalCommand); } public DelegateCommand LoadIncrementalCommand { get; set; } public override string TitleText { get { if (this.Items != null) return "Inventories (" + this.Items.Count() + ")"; return "Inventories"; } } protected override IQueryDefinition ViewQuery { get { if (_queryDefinition == null) _queryDefinition = new ItemQueryDefinition(); return _queryDefinition; } } private bool CanExecuteLoadIncrementalCommand(object paramater) { return this.EnableIncrementalLoading; } private void ExecuteLoadIncrementalCommand(object parameter) { LoadDataIncremental(); } } }
Please obtain and evaluate the sample that exhibits this feature in WebAPI Enabled Inventory Tracker.
Hope this helps.
Hi Domingo,
This is one of the issues that we're going to solve with our Crosslight v2 which is going to be launched the sometime around the end of this month to early May. Crosslight v2 will cover end-to-end process starting from data retrieval, paging, incremental load, pull to refresh, and much more. We'll keep you posted. Thanks!
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname