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
Hi Guys,
I probably asked this before, but the thread is no longer active. For some reason, it is no longer updated. That said, we'd like to re-phrase our concern. We were hoping to load data on-demand depending on the filter entered by the user without loading a huge amount of data first. If I remember it correctly, Intersoft support mentioned that this will be supported on Crosslight v2.
Now, we already have our own service that loads data from a server using WCF. Some methods from our service returns a Task<IEnumerable<Item>> (e.g. public Task<IEnumerable<MachineItem>> GetListOfMachines()). How can we hook this up with Crosslight v2 ListViewModels to enable an on-demand search, or incremental load? Any ideas?
Hi Domingo,
If you notice in the DataListViewModelBase, we have an overridable Repository property. By default, Crosslight supports WebAPI repository as we think it provides a leaner queries and a more flexible REST-based requests. We highly recommend you to migrate to the WebAPI infrastructure if possible. However, if this is not possible, you will require to override the Repository property and provide the custom implementations of the repository that will handle the incremental loading of your applications.
Judging by the method definfition (public Task<IEnumerable<MachineItem>> GetListOfMachines()), it seems that is not quite possible, unless, if you could provide some sort of range as the "range" for the query. Perhaps something like GetListOfMachines(int startIndex, int endIndex), but still, you will need to handle the custom implementations. The DataListViewModelBase has properties that will help you to achieve the incremental loadingprocess, as outlined in the documentation: http://developer.intersoftpt.com/display/crosslight/Enabling+Incremental+Loading.
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