<?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 : EntityQueryPagedCollectionView</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : EntityQueryPagedCollectionView</description>
  <pubDate>Tue, 14 Apr 2026 16:33:00 -700</pubDate>
  <lastBuildDate>Thu, 30 Dec 2010 06:41:36 -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=2400</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>EntityQueryPagedCollectionView : Awesome, this works great. I do...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2400&amp;PID=9503#9503</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 2400<br /><strong>Posted:</strong> 30-Dec-2010 at 6:41am<br /><br />Awesome, this works great.&nbsp; I do so much appreciate the support - I might not have ever figured that one out on my own.<DIV>&nbsp;</DIV><DIV>Greg</DIV>]]>
   </description>
   <pubDate>Thu, 30 Dec 2010 06:41:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2400&amp;PID=9503#9503</guid>
  </item> 
  <item>
   <title>EntityQueryPagedCollectionView : Hi Greg,   When you call AddNew(),...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2400&amp;PID=9499#9499</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2400<br /><strong>Posted:</strong> 29-Dec-2010 at 10:44am<br /><br /><P>Hi Greg, </P><DIV>&nbsp;</DIV><DIV>When you call AddNew(), a new instance is created using EM.CreatEntity&lt;T&gt; and it goes into "Edit" mode (you&nbsp;probably want to add data to the new entity). </DIV><DIV>&nbsp;</DIV><DIV>That's intentional - you can't page while an edit is underway.</DIV><DIV>&nbsp;</DIV><DIV>Once you are done editting the entity, you must call CommitNew() (or CancelNew() if you want to dispose the entity) and then you can navigate/add items to the list. </DIV><DIV>The same happens if you are editing an existing item (i.e. this.Contacts.EditItem(this.Contacts.CurrentItem)) where you will need to call CommitEdit() or CancelEdit().</DIV><DIV>&nbsp;</DIV><DIV>Silvio.</DIV>]]>
   </description>
   <pubDate>Wed, 29 Dec 2010 10:44:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2400&amp;PID=9499#9499</guid>
  </item> 
  <item>
   <title>EntityQueryPagedCollectionView : I put together a small app based...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2400&amp;PID=9476#9476</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=579" rel="nofollow">gregweb</a><br /><strong>Subject:</strong> 2400<br /><strong>Posted:</strong> 25-Dec-2010 at 6:35pm<br /><br />I put together a small app based on the sample using an EntityQueryPagedCollectionView.&nbsp; It all works fine.&nbsp; Now, I would like to add an item to the list.&nbsp; <DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>I use EntityQueryPagedCollectionView.Add() to add the item to the list, and it does add it to the list correctly.&nbsp; And I can also save it correctly.&nbsp; However, after the item is added, the list then locks up.&nbsp; It can no longer be paged, nor sorted, nor can more than one item be added.&nbsp; Any idea what is going on with this?</DIV><DIV>&nbsp;</DIV><DIV>The code looks like this:</DIV><DIV>&nbsp;</DIV><DIV><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style="COLOR: blue">public</SPAN>&nbsp;<SPAN style="COLOR: blue">void</SPAN>&nbsp;LoadContacts()<BR>		{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;               <SPAN style="COLOR: blue">var</SPAN>&nbsp;query&nbsp;=&nbsp;_mgr.ContactEntities;<BR> <BR>			<SPAN style="COLOR: blue">this</SPAN>.Contacts&nbsp;=&nbsp;<SPAN style="COLOR: blue">new</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">EntityQueryPagedCollectionView</SPAN>(<BR>				query,<BR>				<SPAN style="COLOR: blue">this</SPAN>.PageSize,<BR>				<SPAN style="COLOR: blue">this</SPAN>.PageSize,<BR>				<SPAN style="COLOR: blue">true</SPAN>,<BR>				<SPAN style="COLOR: blue">false</SPAN><BR>				);<BR> <BR>			<SPAN style="COLOR: blue">this</SPAN>.Contacts.SortDescriptions.Add(<SPAN style="COLOR: blue">new</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">SortDescription</SPAN>(<SPAN style="COLOR: #a31515">"Last"</SPAN>,&nbsp;<SPAN style="COLOR: #2b91af">ListSortDirection</SPAN>.Descending));<BR>			<SPAN style="COLOR: blue">this</SPAN>.Contacts.Refresh();<BR> <BR>		}</PRE><PRE style="FONT-FAMILY: c&#111;nsolas"><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style="COLOR: blue">internal</SPAN>&nbsp;<SPAN style="COLOR: blue">void</SPAN>&nbsp;AddContact()<BR>		{<BR>			<SPAN style="COLOR: blue">this</SPAN>.Contacts.AddNew();<BR>		}</PRE></PRE><PRE style="FONT-FAMILY: c&#111;nsolas"><PRE style="FONT-FAMILY: c&#111;nsolas"><SPAN style="COLOR: blue">internal</SPAN>&nbsp;<SPAN style="COLOR: blue">void</SPAN>&nbsp;SaveContact()<BR>		{<BR>			<SPAN style="COLOR: #2b91af">EntitySaveOperation</SPAN>&nbsp;op&nbsp;=&nbsp;<SPAN style="COLOR: blue">this</SPAN>._mgr.SaveChangesAsync();<BR>			op.Completed&nbsp;+=&nbsp;<SPAN style="COLOR: blue">new</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">EventHandler</SPAN>&lt;<SPAN style="COLOR: #2b91af">EntitySavedEventArgs</SPAN>&gt;(op_Completed);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>		}<BR> <BR>		<SPAN style="COLOR: blue">void</SPAN>&nbsp;op_Completed(<SPAN style="COLOR: blue">object</SPAN>&nbsp;sender,&nbsp;<SPAN style="COLOR: #2b91af">EntitySavedEventArgs</SPAN>&nbsp;e)<BR>		{<BR>			<SPAN style="COLOR: #2b91af">EntitySaveOperation</SPAN>&nbsp;op&nbsp;=&nbsp;sender&nbsp;<SPAN style="COLOR: blue">as</SPAN>&nbsp;<SPAN style="COLOR: #2b91af">EntitySaveOperation</SPAN>;<BR>			<SPAN style="COLOR: blue">if</SPAN>&nbsp;(op.HasError)<BR>			{<BR>				<SPAN style="COLOR: #2b91af">MessageBox</SPAN>.Show(op.Error.Message);<BR>			}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN style="COLOR: blue">this</SPAN>.Contacts.Refresh();<BR>		}</PRE></PRE></DIV>]]>
   </description>
   <pubDate>Sat, 25 Dec 2010 18:35:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2400&amp;PID=9476#9476</guid>
  </item> 
 </channel>
</rss>