<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Lazy Loading?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Lazy Loading?</description>
  <pubDate>Wed, 20 May 2026 09:11:01 -700</pubDate>
  <lastBuildDate>Tue, 20 Apr 2010 23:31:40 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=1724</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Lazy Loading? : Hi There,The issue has been resolved....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1724&amp;PID=6571#6571</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=747" rel="nofollow">mlens</a><br /><strong>Subject:</strong> 1724<br /><strong>Posted:</strong> 20-Apr-2010 at 11:31pm<br /><br />Hi There,<br><br>The issue has been resolved. It was nothing to do with DevForce, there was an oversight in the ViewModel.<br><br>Thanks<br>Marcus<br>]]>
   </description>
   <pubDate>Tue, 20 Apr 2010 23:31:40 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1724&amp;PID=6571#6571</guid>
  </item> 
  <item>
   <title>Lazy Loading? : Thanks for the response. Please...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1724&amp;PID=6531#6531</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=747" rel="nofollow">mlens</a><br /><strong>Subject:</strong> 1724<br /><strong>Posted:</strong> 20-Apr-2010 at 12:14am<br /><br />Thanks for the response. Please see details below;<br><br><img src="uploads/747/Model.png" height="523" width="419" border="0" /><br>public class ProductList : ObservableCollection&lt;Product&gt;<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public ProductList()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ((App)App.Current).Manager.ExecuteQueryAsync(((App)App.Current).Manager.Products, GotProducts, null);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private void GotProducts(EntityFetchedEventArgs args)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (args.Error != null)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //WriteMessage(args.Error.Message);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach (Product product in args.Result)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.Add(product);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; }<br><br>* Note : When each product is added the the collection in the foreach loop, the Product.Colors have no items, is this normal behaviour?<br><br>&lt;data:DataGrid.Columns&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- Product Combo --&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;data:DataGridTemplateColumn Header="Product/Style"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;data:DataGridTemplateColumn.CellEditingTemplate&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;DataTemplate&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ComboBox x:Name="cboProduct" ItemsSource="{StaticResource Products}" DisplayMemberPath="Description" SelectedItem="{Binding Source={StaticResource SalesOrderVM}, Path=SelectedProduct, Mode=TwoWay}"&gt;&lt;/ComboBox&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/DataTemplate&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/data:DataGridTemplateColumn.CellEditingTemplate&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/data:DataGridTemplateColumn&gt;<br><br>Upon choosing a Product from the ComboBox, the colors collection has no items. Subsequent selection shows colors where appropriate. It's like the Async fetch takes a while to retrieve? <br><br>Please let me know if you require more information.<br><br>Regards<br>Marcus<br><br><br><br>]]>
   </description>
   <pubDate>Tue, 20 Apr 2010 00:14:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1724&amp;PID=6531#6531</guid>
  </item> 
  <item>
   <title>Lazy Loading? : If this were true &amp;#034;lazy loading&amp;#034;,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1724&amp;PID=6517#6517</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 1724<br /><strong>Posted:</strong> 19-Apr-2010 at 3:49pm<br /><br />If this were true "lazy loading", you would expect that the colors would appear on the first query.&nbsp; The fact that the colors only appear on the second amd subsequent queries argues that the data is being accessed through the Entity Manager cache, not "lazy loading.<DIV>&nbsp;</DIV><DIV>Do you have an example&nbsp;that you would like to show us?</DIV>]]>
   </description>
   <pubDate>Mon, 19 Apr 2010 15:49:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1724&amp;PID=6517#6517</guid>
  </item> 
  <item>
   <title>Lazy Loading? : Hi There,Environment : SL3, VS2008,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1724&amp;PID=6505#6505</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=747" rel="nofollow">mlens</a><br /><strong>Subject:</strong> 1724<br /><strong>Posted:</strong> 19-Apr-2010 at 12:40am<br /><br />Hi There,<br><br>Environment : SL3, VS2008, DevForce 5.2.6<br><br>We have a basic model that seems to be lazy loading a nested collection. In a nutshell we have a Product that has a collection of colors. We've setup a basic SL input form to allow customers the ability to choose a Product from a combobox. In turn, we filter another combo box with available colors for that product. Problem is, the first time you select a product the color collection has no items in it. The second and subsequent time(s) the colors appear fine.<br><br>Has anyone else experience this behaviour? It's appears as though the colors are lazily loaded?<br><br>Regards<br>Marcus<br>]]>
   </description>
   <pubDate>Mon, 19 Apr 2010 00:40:09 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1724&amp;PID=6505#6505</guid>
  </item> 
 </channel>
</rss>