<?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 : Report Group Expand state bug</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Report Group Expand state bug]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 18:34:50 +0000</pubDate>
  <lastBuildDate>Wed, 02 Sep 2009 15:14:29 +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=15033</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[Report Group Expand state bug : Thank you for the explanation....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15033&amp;PID=52696&amp;title=report-group-expand-state-bug#52696</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 15033<br /><strong>Posted:</strong> 02 September 2009 at 3:14pm<br /><br />Thank you for the explanation. I was confused when the samples appeared to perform the same function. I understand now that there has never been child selection retention.<br><br>My question is then, is there a way to retain the child selection? SelectChilds() doesn't seem to work with my scenario as I noted before. Given the CXTPReportRow shouldn't SelectChilds() highlight the children as selected?<br>]]>
   </description>
   <pubDate>Wed, 02 Sep 2009 15:14:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15033&amp;PID=52696&amp;title=report-group-expand-state-bug#52696</guid>
  </item> 
  <item>
   <title><![CDATA[Report Group Expand state bug : I give a links for old samples...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15033&amp;PID=52624&amp;title=report-group-expand-state-bug#52624</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15033<br /><strong>Posted:</strong> 31 August 2009 at 9:32pm<br /><br />I give a links for old samples to proof another position - they all loose child selection - even you click with Control pressed - now selection kept in such case - this is where I disagree with your comment: &gt;&gt;This also works properly using the original 13.1 source.<BR>(I take original as June version - not later upgrades)<BR>]]>
   </description>
   <pubDate>Mon, 31 Aug 2009 21:32:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15033&amp;PID=52624&amp;title=report-group-expand-state-bug#52624</guid>
  </item> 
  <item>
   <title><![CDATA[Report Group Expand state bug : I&amp;#039;m sorry, we must not be...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15033&amp;PID=52623&amp;title=report-group-expand-state-bug#52623</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 15033<br /><strong>Posted:</strong> 31 August 2009 at 9:22pm<br /><br />I'm sorry, we must not be communicating. I compared the samples you provided and could not do multiple-select collapse or expand with them. They appeared to have the same functionality.&nbsp;]]>
   </description>
   <pubDate>Mon, 31 Aug 2009 21:22:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15033&amp;PID=52623&amp;title=report-group-expand-state-bug#52623</guid>
  </item> 
  <item>
   <title><![CDATA[Report Group Expand state bug : Please compare this:  I do have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15033&amp;PID=52576&amp;title=report-group-expand-state-bug#52576</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15033<br /><strong>Posted:</strong> 30 August 2009 at 5:07pm<br /><br /><DIV>Please compare this:</DIV><DIV>&nbsp;</DIV><DIV>I do have 12.1 sample - </DIV><DIV>&nbsp;</DIV><DIV><DIV></DIV><a href="https://forum.codejock.com/uploads/DemoVersi&#111;n/ReportSampleStatic-12-1.rar" target="_blank">https://forum.codejock.com/uploads/DemoVersion/ReportSampleStatic-12-1.rar</A></DIV><DIV>&nbsp;</DIV><DIV>and 13.1 (June) sample -</DIV><DIV>&nbsp;</DIV><DIV><a href="https://forum.codejock.com/uploads/DemoVersi&#111;n/ReportSample13-1-June-Static.rar" target="_blank">https://forum.codejock.com/uploads/DemoVersion/ReportSample13-1-June-Static.rar</A></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 30 Aug 2009 17:07:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15033&amp;PID=52576&amp;title=report-group-expand-state-bug#52576</guid>
  </item> 
  <item>
   <title><![CDATA[Report Group Expand state bug : If I understand your meaning,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15033&amp;PID=52574&amp;title=report-group-expand-state-bug#52574</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 15033<br /><strong>Posted:</strong> 30 August 2009 at 4:36pm<br /><br />If I understand your meaning, the control does indeed work properly if you +/- each row individually while holding ctrl. The selections are retained as they should be. This also works properly using the original 13.1 source.<br><br>The difference of course is that  when expand/collapse is done programmatically  the child selections are not retained. <br><br>I also attempted using SelectChilds() of the parent after expand/collapse, but it didn't work for me.<br><br>I hope this helps pinpoint the issue.<br>]]>
   </description>
   <pubDate>Sun, 30 Aug 2009 16:36:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15033&amp;PID=52574&amp;title=report-group-expand-state-bug#52574</guid>
  </item> 
  <item>
   <title><![CDATA[Report Group Expand state bug : Did you try to make deep childs...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15033&amp;PID=52560&amp;title=report-group-expand-state-bug#52560</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15033<br /><strong>Posted:</strong> 29 August 2009 at 4:27pm<br /><br />Did you try to make deep childs selection and after collapse and expand again parent group row or grand parent... group row? <DIV><FONT size=2>If you keep Control pressed -&nbsp;Selected childs&nbsp;non-touched, if not - childs unselected. Need to fix&nbsp;this case.&nbsp;</DIV></FONT>]]>
   </description>
   <pubDate>Sat, 29 Aug 2009 16:27:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15033&amp;PID=52560&amp;title=report-group-expand-state-bug#52560</guid>
  </item> 
  <item>
   <title><![CDATA[Report Group Expand state bug : The report sample works as expected...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15033&amp;PID=52559&amp;title=report-group-expand-state-bug#52559</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 15033<br /><strong>Posted:</strong> 29 August 2009 at 3:47pm<br /><br />The report sample works as expected however there is no mechanism included to illustrate the problem.<br><br>The sample  uses the same "collapse all" or "expand all" methods which work fine. In addition it  allows a single selected row to expand or collapse. This also works fine.<br><br>The problem is in using multiple selection. There is no control to perform a <u>multiple selection</u> expand/collapse toggle as I've implemented so the process cannot be tested.<br>]]>
   </description>
   <pubDate>Sat, 29 Aug 2009 15:47:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15033&amp;PID=52559&amp;title=report-group-expand-state-bug#52559</guid>
  </item> 
  <item>
   <title><![CDATA[Report Group Expand state bug : Please try again with refreshed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15033&amp;PID=52545&amp;title=report-group-expand-state-bug#52545</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15033<br /><strong>Posted:</strong> 28 August 2009 at 4:31pm<br /><br />Please try again with refreshed <a href="https://forum.codejock.com/uploads/DemoVersi&#111;n/ReportSampleStatic.rar" target="_blank">https://forum.codejock.com/uploads/DemoVersion/ReportSampleStatic.rar</A>&nbsp;based on SVN code (not on Aug 27 working atteampts) - it deal with selection with group rows well]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 16:31:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15033&amp;PID=52545&amp;title=report-group-expand-state-bug#52545</guid>
  </item> 
  <item>
   <title><![CDATA[Report Group Expand state bug : The first thing I noticed was...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15033&amp;PID=52544&amp;title=report-group-expand-state-bug#52544</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 15033<br /><strong>Posted:</strong> 28 August 2009 at 3:53pm<br /><br />The first thing I noticed was the group row was now selectable and had no checkbox. Maybe I'm confused as to the intent of the checkbox, but I was under the impression that the checkbox was used to indicate selection if the group row was "not" selectable (not highlighted).<br><br><font size="2">With default in constructor:<br><br>XTPReportControl.cpp<br><br>CXTPReportControl::CXTPReportControl()<br><br>m_bSelectionExcludeGroupRows</font> = TRUE;<br><br>Shouldn't m_bSelectionExcludeGroupRows = TRUE if the group rows are to be excluded from selection? I know it's just semantics, but&nbsp; logically it should be FALSE if group rows are allowed selectable.<br><br>in XTPReportControl.h<br><br>BOOL m_bSelectionExcludeGroupRows;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // TRUE if selection include group rows - eh?<br><br>The next thing noticed was that selections do not persist. Here is the effect illustrated:<br><br>Before Expand:<br><br><img src="uploads/20090828_152124_clip1.jpg" height="71" width="732" border="0"><br><br>After Expand:<br><br><img src="uploads/20090828_152249_clip2.jpg" height="136" width="734" border="0"><br>As you can see, selection highlight is removed except for the first item group row. I would expect the parent group rows and children to now be selected OR if group rows not selectable, only the child items should be selected.<br><br>Here is the code that I use to control the expand/collapse. The intent is to toggle expand/collapse on the selected rows regardless of whether they are group rows or  child rows.<br><br>void CReportView::OnExpand()<br>{<br>&nbsp;&nbsp;&nbsp; CXTPReportSelectedRows* pSelectedRows = GetReportCtrl().GetSelectedRows();<br><br>&nbsp;&nbsp;&nbsp; if (!pSelectedRows)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br><br>&nbsp;&nbsp;&nbsp; CXTPReportRow* pRow = NULL;<br>&nbsp;&nbsp;&nbsp; CXTPReportRow* pParent = NULL;<br><br>&nbsp;&nbsp;&nbsp; int nCount = pSelectedRows-&gt;GetCount();<br>&nbsp;&nbsp;&nbsp; for (int i = nCount - 1; i &gt;= 0; i--)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pRow = pSelectedRows-&gt;GetAt(i);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pParent = pRow-&gt;GetParentRow();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pParent &amp;&amp; pParent-&gt;IsGroupRow())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pParent-&gt;SetExpanded(!pParent-&gt;IsExpanded());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else if (pRow-&gt;IsGroupRow())<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pRow-&gt;SetExpanded(!pRow-&gt;IsExpanded());<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br><br><br><br>]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 15:53:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15033&amp;PID=52544&amp;title=report-group-expand-state-bug#52544</guid>
  </item> 
  <item>
   <title><![CDATA[Report Group Expand state bug : Pleaseget recent source andmake...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15033&amp;PID=52480&amp;title=report-group-expand-state-bug#52480</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15033<br /><strong>Posted:</strong> 28 August 2009 at 12:09am<br /><br />Please&nbsp;get recent source and&nbsp;make build to check this effect - <a href="https://forum.codejock.com/uploads/DemoVersi&#111;n/ReportC&#111;ntrolMFCUpdatedAug27.rar" target="_blank">https://forum.codejock.com/uploads/DemoVersion/ReportControlMFCUpdatedAug27.rar</A> <DIV>&nbsp;</DIV><DIV>Btw - new flag ReportControl.<FONT size=2>m_bSelectionExcludeGroupRows (default = FALSE - 12.1 version behaviour)</FONT></DIV><DIV><FONT size=2>allow to hightlite or not group rows in selection - see <a href="https://forum.codejock.com/uploads/DemoVersi&#111;n/ReportSampleStatic.rar" target="_blank">https://forum.codejock.com/uploads/DemoVersion/ReportSampleStatic.rar</A>&nbsp;with default settings</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Group Row in most case - visual artefacts (no record behind). Selection operate with set of records. Feel difference</FONT></DIV>]]>
   </description>
   <pubDate>Fri, 28 Aug 2009 00:09:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15033&amp;PID=52480&amp;title=report-group-expand-state-bug#52480</guid>
  </item> 
 </channel>
</rss>