<?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 : CXTPReportControl RedrawControl() vs. Populate()</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPReportControl RedrawControl() vs. Populate()]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 19:31:56 +0000</pubDate>
  <lastBuildDate>Thu, 10 May 2007 16:57:56 +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=7099</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[CXTPReportControl RedrawControl() vs. Populate() : Hi,After modifying a Records collection...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7099&amp;PID=22763&amp;title=cxtpreportcontrol-redrawcontrol-vs-populate#22763</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 7099<br /><strong>Posted:</strong> 10 May 2007 at 4:57pm<br /><br />Hi,<br><br>After modifying a Records collection you <b>have</b> to call Populate, because this method actually clears all current rows, prepare Records to be shown (performs grouping, sorting, filtering and others) and then populates an array of Rows which is actually visible for a user.<br><br>Hope described this better then in help files... <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" align="middle"><br><br>--<br>WBR,<br>Serge <br>]]>
   </description>
   <pubDate>Thu, 10 May 2007 16:57:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7099&amp;PID=22763&amp;title=cxtpreportcontrol-redrawcontrol-vs-populate#22763</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPReportControl RedrawControl() vs. Populate() : Hi,I have a problem with CXTPReportControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7099&amp;PID=22745&amp;title=cxtpreportcontrol-redrawcontrol-vs-populate#22745</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1125">lajbr</a><br /><strong>Subject:</strong> 7099<br /><strong>Posted:</strong> 10 May 2007 at 5:28am<br /><br />Hi,<br><br>I have a problem with CXTPReportControl in CodeJock 10.4.2. I use CXTPReportControl and I use it to representation of e-mail folder. In so case I need to add and remove items/e-mails very often. I supposed that I have to use only Populate() to propagate the changes. But I have found that there is CXTPReportControl::RedrawControl() too and that should be possible to use it in combination with BeginUpdate() and EndUpdate() in this situation. So I wrote a method where I added one item enwrap with BeginUpdate()&nbsp; and EndUpdate(), where CReportEmailView is class based on CXTPReportView:<br><br><font face="Arial, Helvetica, sans-serif">void CReportEmailView::AddTestItem(MAILCONTEXT pNewCtx)<br>{<br>GetReportCtrl().BeginUpdate();<br>lRet = AddContextItem(pNewCtx);<br>if(!lRet)<br>&nbsp;&nbsp;&nbsp; RedrawControl();<br>GetReportCtrl().EndUpdate();<br>}<br><br>int CReportEmailView::AddContextItem</font><font face="Arial, Helvetica, sans-serif">(MAILCONTEXT pNewCtx)<br>{<br>... // getting parameters<br>//add new record <br>CXTPReportRecord *pRecord = AddRecord(...parameters...);<br><br>&nbsp;&nbsp;&nbsp; return 0;<br>}<br></font><br>I supposed that it will work because there is written: "<i>If you want to add items one at a time using the <a href="CXTPReportC&#111;ntrol__AddRecord@CXTPReportRecord_.html" target="_blank">AddRecord</a> method, or to make some another operations in a single sequence, you can use the BeginUpdate method to prevent the control from repainting the <a href="CXTPReportC&#111;ntrol.html" target="_blank">CXTPReportControl</a> each time an item is added. Once you have completed the task of adding items to the control, call the <a href="CXTPReportC&#111;ntrol__EndUpdate.html" target="_blank">EndUpdate</a> method to enable the <a href="CXTPReportC&#111;ntrol.html" target="_blank">CXTPReportControl</a> to repaint. This way of adding items can prevent flickered drawing of the <a href="CXTPReportC&#111;ntrol.html" target="_blank">CXTPReportControl</a> when a large number of items are being added to the control.</i>" in the help file. But it doesn't work. I don't know why the change isn't propagate to the output even if the new record is successfully added to the control and RedrawControl() is called from the EndUpdate(). Please, can you help me where the problem is or is it neccessary to use only Populate() for ensure correct state of CXTPReportControl?<br><br>Thanks you beforehand for your suggestions and answers.<br><br>Lajbr<br>]]>
   </description>
   <pubDate>Thu, 10 May 2007 05:28:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7099&amp;PID=22745&amp;title=cxtpreportcontrol-redrawcontrol-vs-populate#22745</guid>
  </item> 
 </channel>
</rss>