<?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 : Tree Column in Virtual Mode</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Tree Column in Virtual Mode]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 14:30:10 +0000</pubDate>
  <lastBuildDate>Tue, 01 Sep 2009 16:34:31 +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=14795</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[Tree Column in Virtual Mode : Thanks Mark. I&amp;#039;ll be examining...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14795&amp;PID=52658&amp;title=tree-column-in-virtual-mode#52658</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5400">binkman71</a><br /><strong>Subject:</strong> 14795<br /><strong>Posted:</strong> 01 September 2009 at 4:34pm<br /><br />Thanks Mark.&nbsp; I'll be examining the code you provided!&nbsp; It should, at the very least, be a good jumping off point.<DIV>&nbsp;</DIV><DIV>And I do realize I'd have to support things on the data end.&nbsp; But, that said, in the past when I've used controls with virtual modes in them, the control requested display items one at a time (but they didn't contain trees).&nbsp; So if you had a tree like this:</DIV><DIV>&nbsp;</DIV><DIV>Row0</DIV><DIV>&nbsp; |-----Row1</DIV><DIV>&nbsp; |-----Row2</DIV><DIV>Row3</DIV><DIV>&nbsp; |-----Row4</DIV><DIV>&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |------Row5</DIV><DIV>&nbsp; |-----Row6</DIV><DIV>&nbsp;</DIV><DIV>And you collapsed Row 4, the control would ask (one at a time, via a list, etc.)&nbsp;for the records for Rows 0,1,2,3,4,and 6 to display.&nbsp; If Row 0 was then collapsed, it would ask for 0, 3, 4, and&nbsp;6 &#091;in this extrememly simple example&#093;.&nbsp; This would be my ideal for a control of this nature; mind you I don't know if such a thing exists.&nbsp; Just saying this is what I was hoping for. :)</DIV><DIV>&nbsp;</DIV><DIV>K.</DIV>]]>
   </description>
   <pubDate>Tue, 01 Sep 2009 16:34:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14795&amp;PID=52658&amp;title=tree-column-in-virtual-mode#52658</guid>
  </item> 
  <item>
   <title><![CDATA[Tree Column in Virtual Mode : I think the same than Mark. When...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14795&amp;PID=52656&amp;title=tree-column-in-virtual-mode#52656</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4289">fjosesen</a><br /><strong>Subject:</strong> 14795<br /><strong>Posted:</strong> 01 September 2009 at 4:13pm<br /><br />I think the same than Mark. When using virtual tree mode, the hosting app should manage the hierarchy and handle the expanding/collapsing events.<DIV>&nbsp;</DIV><DIV>Welcome to the virtual world! Too fast and too fool!</DIV><DIV>&nbsp;</DIV><DIV>FJSen</DIV>]]>
   </description>
   <pubDate>Tue, 01 Sep 2009 16:13:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14795&amp;PID=52656&amp;title=tree-column-in-virtual-mode#52656</guid>
  </item> 
  <item>
   <title><![CDATA[Tree Column in Virtual Mode : This is a requsted sample - you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14795&amp;PID=52614&amp;title=tree-column-in-virtual-mode#52614</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14795<br /><strong>Posted:</strong> 31 August 2009 at 1:24pm<br /><br />This is a requsted sample - you need to use <FONT color=#000000 size=2>m_lstCollapsed if you want support proper reaction on virtual row checkbox click <DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV><a href="http://forum.codejock.com/uploads/20090831_132513_VirtualTestForF.rar" target="_blank">uploads/20090831_132513_VirtualTestForF.rar</A></DIV><DIV></DIV></FONT>]]>
   </description>
   <pubDate>Mon, 31 Aug 2009 13:24:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14795&amp;PID=52614&amp;title=tree-column-in-virtual-mode#52614</guid>
  </item> 
  <item>
   <title><![CDATA[Tree Column in Virtual Mode : &amp;gt;&amp;gt;I got the check boxes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14795&amp;PID=52611&amp;title=tree-column-in-virtual-mode#52611</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14795<br /><strong>Posted:</strong> 31 August 2009 at 1:01pm<br /><br />&gt;&gt;I got the check boxes working, still at a loss of tree node expanding/collapsing... <DIV></DIV><DIV></DIV>You need to support it on your app level - control have no ideas about your virtual records]]>
   </description>
   <pubDate>Mon, 31 Aug 2009 13:01:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14795&amp;PID=52611&amp;title=tree-column-in-virtual-mode#52611</guid>
  </item> 
  <item>
   <title><![CDATA[Tree Column in Virtual Mode : I would be interested in the sample...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14795&amp;PID=52610&amp;title=tree-column-in-virtual-mode#52610</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 14795<br /><strong>Posted:</strong> 31 August 2009 at 12:48pm<br /><br />I would be interested in the sample code that you offered.<br><br>Thanks for your time and consideration.<br>]]>
   </description>
   <pubDate>Mon, 31 Aug 2009 12:48:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14795&amp;PID=52610&amp;title=tree-column-in-virtual-mode#52610</guid>
  </item> 
  <item>
   <title><![CDATA[Tree Column in Virtual Mode : Please check recent sample with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14795&amp;PID=52573&amp;title=tree-column-in-virtual-mode#52573</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14795<br /><strong>Posted:</strong> 30 August 2009 at 2:56pm<br /><br />Please check recent sample with multi-level tree in virtual mode - it also support click on expand/collapse button on tree - app should react on this click <DIV>&nbsp;</DIV><DIV><a href="https://forum.codejock.com/uploads/DemoVersi&#111;n/EditVirtualListIc&#111;nStatic.rar" target="_blank">https://forum.codejock.com/uploads/DemoVersion/EditVirtualListIconStatic.rar</A></DIV><DIV>&nbsp;</DIV><DIV>Menu - Report - Tree...</DIV><DIV>Check status bar message while you click on Expand/Collapse button on tree</DIV><DIV>&nbsp;</DIV><DIV>I can give you a sample code if you are interesting</DIV>]]>
   </description>
   <pubDate>Sun, 30 Aug 2009 14:56:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14795&amp;PID=52573&amp;title=tree-column-in-virtual-mode#52573</guid>
  </item> 
  <item>
   <title><![CDATA[Tree Column in Virtual Mode : I got the check boxes working,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14795&amp;PID=51213&amp;title=tree-column-in-virtual-mode#51213</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5400">binkman71</a><br /><strong>Subject:</strong> 14795<br /><strong>Posted:</strong> 23 July 2009 at 11:20am<br /><br />I got the check boxes working, still at a loss of tree node expanding/collapsing...]]>
   </description>
   <pubDate>Thu, 23 Jul 2009 11:20:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14795&amp;PID=51213&amp;title=tree-column-in-virtual-mode#51213</guid>
  </item> 
  <item>
   <title><![CDATA[Tree Column in Virtual Mode : I have tried playing with the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14795&amp;PID=51189&amp;title=tree-column-in-virtual-mode#51189</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5400">binkman71</a><br /><strong>Subject:</strong> 14795<br /><strong>Posted:</strong> 22 July 2009 at 5:37pm<br /><br />I have tried playing with the VirtualList example given for setting up a virtual mode Report Control.&nbsp; While I can get the virtual mode to go, I can't get individual columns to actually...work.<DIV>&nbsp;</DIV><DIV>If I add a checkbox to a column, clicking it checks every checkbox in that column.</DIV><DIV>&nbsp;</DIV><DIV>If I use a tree column (this is true of the sample as it exists too), I cannot expand/collapse the tree nodes.</DIV><DIV>&nbsp;</DIV><DIV>I am setting the checkboxes and tree mode in the override of CXTPReportRecord::GetItemMetrics as the example shows.&nbsp; I am not setting the check state of the boxes, though, so similar to this:</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"><FONT face="Courier New, Courier, mono">void CMyVirtualRecord::GetItemMetrics(XTP_REPORTRECORDITEM_DRAWARGS* pDrawArgs, XTP_REPORTRECORDITEM_METRICS* pItemMetrics)<BR>{<BR>&nbsp;&nbsp;&nbsp; CString strColumn = pDrawArgs-&gt;pColumn-&gt;GetCaption();<BR>&nbsp;&nbsp;&nbsp; int nIndexCol = pDrawArgs-&gt;pColumn-&gt;GetItemIndex();<BR>&nbsp;&nbsp;&nbsp; int nIndexRow = pDrawArgs-&gt;pRow-&gt;GetIndex();<BR>&nbsp;&nbsp;&nbsp; int nCount = pDrawArgs-&gt;pControl-&gt;GetRows()-&gt;GetCount();<BR>&nbsp;&nbsp;&nbsp; CXTPReportRecord* pRecord = pDrawArgs-&gt;pRow-&gt;GetRecord();<BR>&nbsp;&nbsp;&nbsp; switch( nIndexCol )<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; case 0:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pItemMetrics-&gt;strText.Format( _T( "Item %d" ), nIndexRow );<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if( pRecord != NULL )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPReportRecordItem* pItem = pRecord-&gt;GetItem( nIndexCol );<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if( pItem != NULL )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pItem-&gt;SetIconIndex( 0 );<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pItem-&gt;HasCheckbox( TRUE, FALSE );<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<BR></FONT></pre></td></tr></table><P><FONT color=#ffffff size=2><FONT color=#ffffff size=2></P><FONT color=#000000>What am I doing wrong, or what do I need to do to make buttons and tree nodes work??&nbsp; Updating the VirtualList sample to make the tree nodes work would be extremely helpful.</FONT></DIV><DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV><FONT color=#000000>Thanks,</FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV><FONT color=#000000>K.</FONT></DIV></FONT></FONT></DIV>]]>
   </description>
   <pubDate>Wed, 22 Jul 2009 17:37:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14795&amp;PID=51189&amp;title=tree-column-in-virtual-mode#51189</guid>
  </item> 
 </channel>
</rss>