﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - Crosslight - How to Use Crosslight with ListViewModelBase or EditableListViewModelBase on Search</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-with-ListViewModelBase-or-EditableListViewModelBase-on-Search/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>How to Use Crosslight with ListViewModelBase or EditableListViewModelBase on Search</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-with-ListViewModelBase-or-EditableListViewModelBase-on-Search/</link><pubDate>Tue, 20 May 2014 04:17:25 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;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.&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="color: #1f497d;"&gt;&lt;p&gt;&lt;span style="color: #1f497d;"&gt;For more detail information about how to enable the incremental loading in Crosslight please check the article in &lt;a href="#DisplayingData-ImplementingIncrementalLoading" target="_blank"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;In order to enable incremental loading with the App Framework, simply inherit your ViewModel from DataListViewModelBase&amp;lt;TModel, TRepository&amp;gt; class and set the EnableIncrementalLoading property to true.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Following snippet code shows a sample of ViewModel with incremental loading enabled.&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;namespace MyInventory.ViewModels
{
    public class ItemListViewModel : DataListViewModelBase&amp;lt;Item, IItemRepository&amp;gt;
    {
        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();
        }
    }
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Please obtain and evaluate the sample that exhibits this feature in &lt;a href="http://developer.intersoftpt.com/display/crosslight/WebAPI-enabled+Inventory+Tracker" target="_blank"&gt;WebAPI Enabled Inventory Tracker&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;</description></item><item><title>How to Use Crosslight with ListViewModelBase or EditableListViewModelBase on Search</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-with-ListViewModelBase-or-EditableListViewModelBase-on-Search/</link><pubDate>Mon, 05 May 2014 22:04:50 GMT</pubDate><dc:creator>nick5454</dc:creator><description>Yeah i'm dieing for the new version&lt;br /&gt;</description></item><item><title>How to Use Crosslight with ListViewModelBase or EditableListViewModelBase on Search</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-with-ListViewModelBase-or-EditableListViewModelBase-on-Search/</link><pubDate>Mon, 05 May 2014 13:35:13 GMT</pubDate><dc:creator>dfugaban@silentpartnersoft.com</dc:creator><description>Any updates?</description></item><item><title>How to Use Crosslight with ListViewModelBase or EditableListViewModelBase on Search</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-with-ListViewModelBase-or-EditableListViewModelBase-on-Search/</link><pubDate>Wed, 23 Apr 2014 21:20:25 GMT</pubDate><dc:creator>nicholaslie</dc:creator><description>&lt;p&gt;Hi Domingo,&lt;/p&gt;&lt;p&gt;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!&lt;/p&gt;</description></item><item><title>How to Use Crosslight with ListViewModelBase or EditableListViewModelBase on Search</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-with-ListViewModelBase-or-EditableListViewModelBase-on-Search/</link><pubDate>Wed, 23 Apr 2014 17:58:44 GMT</pubDate><dc:creator>dfugaban@silentpartnersoft.com</dc:creator><description>Hi Guys,
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;How do we use the said list viewmodels with an on-demand data filter? Meaning, we only need to load the data being searched. Not to load all data first, and then use filter and scope to limit the list. The issue with the current implementation, based on Crosslight framework is that the app should load the SourceItems first. Now, assuming you have thousands of records to load from a network... this is going to be a long process. And that is not a good experience for our users, when in fact the user only requires one item from the list.&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Any thoughts? Thanks!&lt;/div&gt;</description></item></channel></rss>