<?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 : PlusMinus Sign on parent row without child rows</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : PlusMinus Sign on parent row without child rows]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 00:51:58 +0000</pubDate>
  <lastBuildDate>Fri, 28 Jan 2011 09:15:50 +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=17783</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[PlusMinus Sign on parent row without child rows : Hi, I forgot to mention to se...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17783&amp;PID=62352&amp;title=plusminus-sign-on-parent-row-without-child-rows#62352</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17783<br /><strong>Posted:</strong> 28 January 2011 at 9:15am<br /><br /><P>Hi,</P><P>I forgot to mention to set:</P><P>wndReportControl.SetCustomDraw xtpCustomBeforeDrawRow</P><P>in order to 'activate' BeforeDrawRow event </P><DIV>A little more info on above code:</DIV><DIV>This event fires whenever RC needs to be redrawn (mouseclicks, scrolling etc etc) so the icon 'expanded' shows only when a row is really expanded and to expand a row you need childs otherwise its just an ordinary row.&nbsp;Because you removed + / - icon (from .Glyphs collection), the row responds to a single click and you are able to fill the record with the childs. You have to check if you added childs&nbsp;already of course or another option is (when row is collapsed) remove its childs again. Basicly same way as Windows Explorer works, + sign is always present even when the folder is empty. Only clicking the folder wil update icon.</DIV><DIV>&nbsp;</DIV><DIV>Hope this helps&nbsp;&nbsp;<img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" /></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 28 Jan 2011 09:15:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17783&amp;PID=62352&amp;title=plusminus-sign-on-parent-row-without-child-rows#62352</guid>
  </item> 
  <item>
   <title><![CDATA[PlusMinus Sign on parent row without child rows : Hi, I don&amp;#039;t see a way to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17783&amp;PID=62340&amp;title=plusminus-sign-on-parent-row-without-child-rows#62340</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17783<br /><strong>Posted:</strong> 28 January 2011 at 2:08am<br /><br /><P>Hi,</P><P>I don't see a way to force plus/minus sign to show. It is controlled by TreeColumn property but this property is set for entire column. If you could set it seperately for each record it would be no problem. </P><DIV>The only thing you could do is remove the + and - Icon from .Glyphs collection and assign expanded/collapsed icon in BeforeDrawRow event. </DIV><DIV>&nbsp;</DIV><DIV>Something like this:</DIV><DIV>&nbsp;</DIV><DIV>With Me.wndReportControl<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Icons.AddIcons Me.wndReportControl.PaintManager.Glyphs<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .PaintManager.Glyphs.RemoveIcon 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .PaintManager.Glyphs.RemoveIcon 1</DIV><DIV>End With</DIV><DIV>&nbsp;</DIV><DIV>Private Sub wndReportControl_BeforeDrawRow(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem, ByVal Metrics As XtremeReportControl.IReportRecordItemMetrics)<BR>&nbsp;&nbsp;&nbsp; Metrics.ItemIcon = IIf(Row.record.Expanded, 0, 1)<BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Good luck <img src="http://forum.codejock.com/smileys/smiley2.gif" height="17" width="17" border="0" alt="Wink" title="Wink" /></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 28 Jan 2011 02:08:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17783&amp;PID=62340&amp;title=plusminus-sign-on-parent-row-without-child-rows#62340</guid>
  </item> 
  <item>
   <title><![CDATA[PlusMinus Sign on parent row without child rows : Dear Aaron,  The problem of...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17783&amp;PID=62235&amp;title=plusminus-sign-on-parent-row-without-child-rows#62235</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6571">Katrien</a><br /><strong>Subject:</strong> 17783<br /><strong>Posted:</strong> 18 January 2011 at 2:24am<br /><br />Dear Aaron,<DIV>&nbsp;</DIV><DIV>The problem of speed is not a Codejock Problem, I have to search for data in different databases in multiple tables and that takes time.</DIV><DIV>&nbsp;</DIV><DIV>To reduce the time for the end user I thought to load the Parent records with the Plus Sign already shown, and when the user clicks the sign, then go look for the child records and add them.</DIV><DIV>&nbsp;</DIV><DIV>The way I do it know is when I add a parend record, I add a empty dummy child record, so that the + sign appears. When the user clicks on the +, then I delete the dummy child record and&nbsp;add the real child records.</DIV><DIV>&nbsp;</DIV><DIV>this means that i only need the time for building the child records for the parents where I'm&nbsp;intrested in.</DIV><DIV>&nbsp;</DIV><DIV>But I wonder if there is a property so I can force the parent record to show the + sign, without al the workaround stuff.</DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV>]]>
   </description>
   <pubDate>Tue, 18 Jan 2011 02:24:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17783&amp;PID=62235&amp;title=plusminus-sign-on-parent-row-without-child-rows#62235</guid>
  </item> 
  <item>
   <title><![CDATA[PlusMinus Sign on parent row without child rows : Hi, I have few questions:  How...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17783&amp;PID=62227&amp;title=plusminus-sign-on-parent-row-without-child-rows#62227</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17783<br /><strong>Posted:</strong> 17 January 2011 at 2:14pm<br /><br /><P>Hi,</P><P>I have few questions:</P><UL><LI>How long does it take before all records are loaded?</LI><LI>How many columns do you have?</LI><LI>How do you add records?</LI><LI>Do you call .Populate everytime you&nbsp;add <strong>one</strong> record?</LI></UL><P>Please let me know&nbsp;and I'll see what I can do to help. 5000 records should be loaded in a&nbsp;split second. I have reports were &gt;100000 records are added (with few columns but still...)</P><DIV>&nbsp;&nbsp;&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 17 Jan 2011 14:14:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17783&amp;PID=62227&amp;title=plusminus-sign-on-parent-row-without-child-rows#62227</guid>
  </item> 
  <item>
   <title><![CDATA[PlusMinus Sign on parent row without child rows : Hey, I&amp;#039;m new to CJ and what...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17783&amp;PID=62189&amp;title=plusminus-sign-on-parent-row-without-child-rows#62189</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6571">Katrien</a><br /><strong>Subject:</strong> 17783<br /><strong>Posted:</strong> 13 January 2011 at 10:32am<br /><br />Hey,<DIV>I'm new to CJ and what I'm trying to do is showing a lot of records into a Report Control (5000), each of them has at least 2 child records.</DIV><DIV>If I build the report, it takes a while to build, so I thought, if I can build the report with only the Parent records that gives me an acceptable build time. I want to have the + sign in the first column, and only if i press the + then I query the database for the child records and add them to the report.</DIV><DIV>&nbsp;</DIV><DIV>The result is the same, but loading time, is speed up a lot.</DIV><DIV>&nbsp;</DIV><DIV>Can someone give me a tip.</DIV><DIV>&nbsp;</DIV><DIV>1/ The first thing I need to know is how to force the Row to show the + sign if there are no child record underneath?</DIV><DIV>&nbsp;</DIV><DIV>2/The event that fires when the + sign is pressed, so I can add the child records before expanding</DIV><DIV>&nbsp;</DIV><DIV>Greetings</DIV><DIV>Katrien</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 13 Jan 2011 10:32:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17783&amp;PID=62189&amp;title=plusminus-sign-on-parent-row-without-child-rows#62189</guid>
  </item> 
 </channel>
</rss>