﻿<?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 v2 on DataListViewModelBase without Using Web API?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-on-DataListViewModelBase-without-Using-Web-API/</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 v2 on DataListViewModelBase without Using Web API?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-on-DataListViewModelBase-without-Using-Web-API/</link><pubDate>Fri, 16 May 2014 00:56:22 GMT</pubDate><dc:creator>nicholaslie</dc:creator><description>&lt;p&gt;Hi Domingo,&lt;/p&gt;&lt;p&gt;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.&lt;/p&gt;&lt;p&gt;Judging by the method definfition (&lt;span style="background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); font-family: 'Lucida Grande', 'Lucida Sans Unicode', Helvetica, Arial, Verdana, sans-serif; line-height: 19px; font-size: 10pt;"&gt;public&amp;nbsp;Task&amp;lt;IEnumerable&amp;lt;MachineItem&amp;gt;&amp;gt; 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 &amp;nbsp;the documentation:&amp;nbsp;&lt;/span&gt;&lt;a href="http://developer.intersoftpt.com/display/crosslight/Enabling+Incremental+Loading" target="_blank"&gt;http://developer.intersoftpt.com/display/crosslight/Enabling+Incremental+Loading&lt;/a&gt;&lt;span style="font-size: 10pt;"&gt;.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>How to Use Crosslight v2 on DataListViewModelBase without Using Web API?</title><link>http://www.intersoftsolutions.com/Community/Crosslight/How-to-Use-Crosslight-v2-on-DataListViewModelBase-without-Using-Web-API/</link><pubDate>Wed, 14 May 2014 17:52:27 GMT</pubDate><dc:creator>dfugaban@silentpartnersoft.com</dc:creator><description>&lt;p&gt;Hi Guys,&lt;/p&gt;&lt;p&gt;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.&lt;/p&gt;&lt;p&gt;Now, we already have our own service that loads data from a server using WCF. Some methods from our service returns a Task&amp;lt;IEnumerable&amp;lt;Item&amp;gt;&amp;gt; (e.g. public&amp;nbsp;Task&amp;lt;IEnumerable&amp;lt;MachineItem&amp;gt;&amp;gt; GetListOfMachines()). How can we hook this up with Crosslight v2 ListViewModels to enable an on-demand search, or incremental load? Any ideas?&lt;/p&gt;</description></item></channel></rss>