<?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 : Disable Collection Change Notifications</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Disable Collection Change Notifications</description>
  <pubDate>Tue, 12 May 2026 21:33:45 -700</pubDate>
  <lastBuildDate>Wed, 13 Mar 2013 11:51:07 -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=4018</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>Disable Collection Change Notifications :  This might not be directly related...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4018&amp;PID=16004#16004</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=613" rel="nofollow">stephenmcd1</a><br /><strong>Subject:</strong> 4018<br /><strong>Posted:</strong> 13-Mar-2013 at 11:51am<br /><br />This might not be directly related to your problem but I thought I'd mention it here for completeness. &nbsp;I also just happened to be looking at this kind of thing so it's fresh in my mind.&nbsp;<div><br></div><div>It is possible to disable these notifications. &nbsp;The following code will add 10 child "OrderDetail" rows to a RelatedEntityList without raising any change notifications:<table width="99%"><tr><td><pre class="BBcode"><span style="line-height: 1.4;">//The 'parent' entity</span><div>var order = new Order();</div><div><br></div><div>//Disable change notifications on the parent entity's group (maybe check if it is already</div><div>// &nbsp;disabled so you don't mess with the existing state?)</div><div>order.EntityAspect.EntityGroup.ChangeNotificationEnabled = false;</div><div><br></div><div>//Get the RelatedEntityList</div><div>RelatedEntityList&lt;OrderDetail&gt; entityList = order.OrderDetails;</div><div><br></div><div>//Add 10 detail rows - none of these will trigger a CollectionChanged event</div><div>for (var i = 0; i &lt; 10;i++ )</div><div>&nbsp; &nbsp; entityList.Add(new OrderDetail());</div><div><br></div><div>//Re-enable notifications for future operations</div><div>order.EntityAspect.EntityGroup.ChangeNotificationEnabled = true;</pre></td></tr></table><div><br></div><div>However, I'm not sure that this would actually help you out if your UI is bound to the related entity list. &nbsp;You basically would have added 10 items behind its back.....so they wouldn't show up. &nbsp;Perhaps you could somehow force the UI to 'refresh' itself after you did the bulk loading. &nbsp;Or you may just need to wait until an AddRange() method gets added.</div><div><br></div><div>You can read more about EntityGroup.ChangeNotificationsEnabled on the <a href="http://drc.ideablade.com/devforce-2012/bin/view/&#068;ocumentati&#111;n/entity-&#101;vents#HEntityGroup&#101;vents" target="_blank">Listen for Changes</a> wiki&nbsp;page. &nbsp;I'll specifically quote this note/warning:</div><div><br></div></div></div><blockquote style="margin: 0 0 0 40px; border: n&#111;ne; padding: 0px;"><div><div><div>There may be cases where a developer wants to suppress all "change notification" within an EntityGroup for a period of time. &nbsp;This can be accomplished by setting the ChangeNotificationEnabled property to 'false'. Note that this will effect change notification at the EntityManager level (EntityChanging, EntityChanged) as well as at the Entity level (INotifyPropertyChanged).</div></div></div></blockquote>]]>
   </description>
   <pubDate>Wed, 13 Mar 2013 11:51:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4018&amp;PID=16004#16004</guid>
  </item> 
  <item>
   <title>Disable Collection Change Notifications : Hi chuckc,  Unfortunately, it&amp;#039;s...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4018&amp;PID=15953#15953</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> 4018<br /><strong>Posted:</strong> 06-Mar-2013 at 11:48am<br /><br />Hi chuckc,<br /><br />Unfortunately, it's not possible to disable RelatedEntityList CollectionChanged event.<br /><br />I'm creating a feature request for an AddRange method.<br /><br />sbelini]]>
   </description>
   <pubDate>Wed, 06 Mar 2013 11:48:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4018&amp;PID=15953#15953</guid>
  </item> 
  <item>
   <title>Disable Collection Change Notifications : I have a RelatedEntityList bound...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4018&amp;PID=15941#15941</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=705" rel="nofollow">chuckc</a><br /><strong>Subject:</strong> 4018<br /><strong>Posted:</strong> 05-Mar-2013 at 12:54pm<br /><br />I have a RelatedEntityList bound to a grid.&nbsp; When the user adds a large number of items to the RelatedEntityList using the Add method, I see a lot of notifications that degrade UI performance.&nbsp; <br><br>What is a good way to disable or minimize these notificatons?&nbsp; The RelatedEntityList doesn't appear to have an AddRange method, which would probably help minimize notifications.&nbsp; Can I temporarily turn off notifications from RelatedEntityList?&nbsp; Or at the EntityManager?<br><br>Thanks for your help.<br>]]>
   </description>
   <pubDate>Tue, 05 Mar 2013 12:54:02 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4018&amp;PID=15941#15941</guid>
  </item> 
 </channel>
</rss>