<?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 : Refresh Calendar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Refresh Calendar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 19:13:17 +0000</pubDate>
  <lastBuildDate>Thu, 15 Feb 2018 10:18:02 +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=23571</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[Refresh Calendar : Hello,I am a complete newbie,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23571&amp;PID=76595&amp;title=refresh-calendar#76595</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9250">bricaro</a><br /><strong>Subject:</strong> 23571<br /><strong>Posted:</strong> 15 February 2018 at 10:18am<br /><br />Hello,<div><br></div><div>I am a complete newbie, so please forgive me, if I'm asking something fairly simple. I am using the SQLServerDataProvider sample for MFC of Xtreme ToolkitPro v18.2.0. What I want to do is, implement a menu command to refresh the data of the calendar control. So the control shall read the latest data from the database. I tried to call:</div><div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>CXTPCalendarControl&amp; control =&nbsp; GetCalendarCtrl();</div><div>control.Populate();</div><div></pre></td></tr></table></div></div><div><br></div><div>and</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>CXTPCalendarControl&amp; control =&nbsp; GetCalendarCtrl();</div><div>control.Populate();</div><div>control.RedrawControl(1);</div></div><div></pre></td></tr></table></div><div><br></div><div>but no method of the custom data provider gets called. It seems the control doesn't even attempt to reread data from the database, and I don't understand why that is.&nbsp; Can someone please point me into the right direction of what I am doing wrong or on how to get the control to do the update?</div><div><br></div><div>Thank you in advance and regards</div><div>Brigitte</div><div><br></div><div><b><img src="http://forum.codejock.com/smileys/smiley4.gif" border="0" alt="Big smile" title="Big smile" />&nbsp;UPDATE:</b></div></div><div>Ok, in the meantime I found that the control didn't reread the data, because it was reading from cache obviously. After setting the cache mode to "off" before calling populate, it worked as expected:</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>CXTPCalendarData* data = GetCalendarCtrl().GetDataProvider();</div><div>data-&gt;SetCacheMode(xtpCalendarDPCacheModeOff);</div><div>GetCalendarCtrl().Populate();</div></div><div></pre></td></tr></table></div><div><br></div><div><img src="http://forum.codejock.com/smileys/smiley25.gif" border="0" alt="Questi&#111;n" title="Questi&#111;n" />&nbsp;Another question regarding this: Is there a way to use the cache, but still force the control to reread from database when I need it? I feel like the various other cache modes are also not sufficient. Thx.</div><div><br></div>]]>
   </description>
   <pubDate>Thu, 15 Feb 2018 10:18:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23571&amp;PID=76595&amp;title=refresh-calendar#76595</guid>
  </item> 
 </channel>
</rss>