<?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="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Populating Calendar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Populating Calendar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 28 May 2026 18:51:24 +0000</pubDate>
  <lastBuildDate>Fri, 28 Aug 2009 11:10:03 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=15071</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Populating Calendar : Thanks again phainge... I will...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15071&amp;PID=52533&amp;title=populating-calendar#52533</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3774">johnp</a><br /><strong>Subject:</strong> 15071<br /><strong>Posted:</strong> 28 August 2009 at 11:10am<br /><br />Thanks again phainge...&nbsp; I will give that a try. Appreciate your quick response.]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 11:10:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15071&amp;PID=52533&amp;title=populating-calendar#52533</guid>
  </item> 
  <item>
   <title><![CDATA[Populating Calendar : johnp, When you call the Populate...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15071&amp;PID=52531&amp;title=populating-calendar#52531</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5361">phainge</a><br /><strong>Subject:</strong> 15071<br /><strong>Posted:</strong> 28 August 2009 at 10:59am<br /><br /><P>johnp,</P><DIV>When you call the Populate method, it will fire the The DoRetrieveDayEvents event for each day in the current view - this event is designed to read the appointments for just one day, so in order to be able to read the appointments for multiple days (i.e.&nbsp;the currently selected&nbsp;date range) you will need to put code in the calendar control SelectionChanged event to read all of the matching appointments (for the current date range) from the database into the recordset, then when you call the Populate method the code in the DoRetrieveDayEvents event will read just the appointments for that day from the recordset.&nbsp; So it will be the SelectionChanged event that reads the appointments from the database, not the DoRetrieveDayEvents event.</DIV><DIV>&nbsp;</DIV><DIV>Peter</DIV>]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 10:59:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15071&amp;PID=52531&amp;title=populating-calendar#52531</guid>
  </item> 
  <item>
   <title><![CDATA[Populating Calendar : phainge, thanks for the feedback....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15071&amp;PID=52527&amp;title=populating-calendar#52527</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3774">johnp</a><br /><strong>Subject:</strong> 15071<br /><strong>Posted:</strong> 28 August 2009 at 10:48am<br /><br /><P>phainge, thanks for the feedback. I am reading data into a recordset and using the recordset to populate the calendar control. I am sure that I am overlooking something obvious but, in my code I execute the following:</P><P>CalendarControl.Populate</P><P>This leads to a call to the following Private sub, once for each day shown (6 months worth)&nbsp;on the datepicker.</P><P>Private Sub m_pCalendar_DoRetrieveDayEvents(ByVal dtDay As Date, ByVal pEvents As xtremecalendarcontrol.CalendarEvents)</P><DIV>Are you suggesting that I set selection.begin and selection.end values to a single date so that this sub only gets called once and modify my recordset source statement to select the range of dates that I want?</DIV>]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 10:48:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15071&amp;PID=52527&amp;title=populating-calendar#52527</guid>
  </item> 
  <item>
   <title><![CDATA[Populating Calendar : Hi johnp,  The calendar control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15071&amp;PID=52523&amp;title=populating-calendar#52523</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5361">phainge</a><br /><strong>Subject:</strong> 15071<br /><strong>Posted:</strong> 28 August 2009 at 10:30am<br /><br />Hi johnp,<DIV><P>The calendar control should only be reading appointments for the currently visible date range that aren't already cached.&nbsp; The following properties&nbsp;expose the date range&nbsp;that is&nbsp;selected in the calendar control:</P><DIV>CalendarControl.ActiveView.Selection.Begin<BR>CalendarControl.ActiveView.Selection.End</DIV><DIV>&nbsp;</DIV><DIV>You can use the date range to read the matching appointments from the database into a recordset, and then have the calendar control populate itself from&nbsp;the recordset rather than the database.&nbsp; That means each time the calendar view changes you are only performing one read from&nbsp;the database instead of multiple reads, which should speed things up.</DIV><DIV>&nbsp;</DIV><DIV>Peter</DIV></DIV>]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 10:30:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15071&amp;PID=52523&amp;title=populating-calendar#52523</guid>
  </item> 
  <item>
   <title><![CDATA[Populating Calendar : I am having a real problem with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15071&amp;PID=52519&amp;title=populating-calendar#52519</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3774">johnp</a><br /><strong>Subject:</strong> 15071<br /><strong>Posted:</strong> 28 August 2009 at 9:56am<br /><br />I am having a real problem with speed on the calendar control. I am using data from an sql table with the custom data provider to get events. The calendar is making a separate call to the table for each day in the date picker. Is there not a way to make one call to the table and select all of the events at one time?]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 09:56:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15071&amp;PID=52519&amp;title=populating-calendar#52519</guid>
  </item> 
 </channel>
</rss>