<?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 : [BUG] Metrics for Report Item doesn&#039;t show markup</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : [BUG] Metrics for Report Item doesn&#039;t show markup]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 01:42:55 +0000</pubDate>
  <lastBuildDate>Wed, 02 Feb 2011 10:50: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=13599</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[[BUG] Metrics for Report Item doesn&#039;t show markup : Beautiful! Thanks Oleg.  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13599&amp;PID=62400&amp;title=bug-metrics-for-report-item-doesnt-show-markup#62400</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 13599<br /><strong>Posted:</strong> 02 February 2011 at 10:50am<br /><br />Beautiful! Thanks Oleg.]]>
   </description>
   <pubDate>Wed, 02 Feb 2011 10:50:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13599&amp;PID=62400&amp;title=bug-metrics-for-report-item-doesnt-show-markup#62400</guid>
  </item> 
  <item>
   <title><![CDATA[[BUG] Metrics for Report Item doesn&#039;t show markup : Thanks, this one is fixed.  ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13599&amp;PID=62393&amp;title=bug-metrics-for-report-item-doesnt-show-markup#62393</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13599<br /><strong>Posted:</strong> 02 February 2011 at 7:39am<br /><br /><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-weight: normal; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; ">Thanks, this one is fixed.</div>]]>
   </description>
   <pubDate>Wed, 02 Feb 2011 07:39:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13599&amp;PID=62393&amp;title=bug-metrics-for-report-item-doesnt-show-markup#62393</guid>
  </item> 
  <item>
   <title><![CDATA[[BUG] Metrics for Report Item doesn&#039;t show markup : Looks like you can use SendMessage...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13599&amp;PID=61962&amp;title=bug-metrics-for-report-item-doesnt-show-markup#61962</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 13599<br /><strong>Posted:</strong> 22 December 2010 at 6:57pm<br /><br />Looks like you can use SendMessage on the InplaceEditHwnd with WM_SETTEXT to get the caption to appear without markup tags. I don't think we should have to do this though.<br><br>Here's a demo:<br><br><a href="uploads/2676/RcEditMarkup2.zip" target="_blank">uploads/2676/RcEditMarkup2.zip</a>]]>
   </description>
   <pubDate>Wed, 22 Dec 2010 18:57:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13599&amp;PID=61962&amp;title=bug-metrics-for-report-item-doesnt-show-markup#61962</guid>
  </item> 
  <item>
   <title><![CDATA[[BUG] Metrics for Report Item doesn&#039;t show markup : Hi Aaron, thanks for the reply...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13599&amp;PID=61961&amp;title=bug-metrics-for-report-item-doesnt-show-markup#61961</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 13599<br /><strong>Posted:</strong> 22 December 2010 at 6:30pm<br /><br />Hi Aaron, thanks for the reply - so I'm not crazy then ;)<br><br>By #2, I meant that I generally want to accomplish the following:<br><br>3 "values" associated with a ReportControlItem:<br><br>1) A hidden value used for sorting purposes (i.e. the Value property)<br>2) A value used for editing and default display purposes (i.e. the Caption property)<br>3) A value used for dynamic formatting (display purposes only) that over-rides the Caption value when present (the Metrics.Text property).<br><br>The user should never see raw markup, so they should see the Caption property value when EditMode = True and see the Metrics.Text value (as rendered Markup if it's a markup string) when EditMode=False (or if Metrics.Text isn't set to anything in the BeforeDrawRow event, then just default the cell text to the Item.Caption value).<br><br>I used dates as just a simple example for demo, but what I really need a separate value for is a custom sort string that I create that allows me to sort alpha-numeric values smartly.<br><br>For example, if the user types this in 5 different cells:<br><br>A10<br>A3<br>A200<br>A1<br>A2<br><br>Normal sorting rules would display in this order:<br><br>A1<br>A10<br>A2<br>A200<br>A3<br><br>I have a routine which pads out internal numbers to something like this (again, example):<br><br>A00010<br>A00003<br>A00200<br>A00001<br>A00002<br><br>So that when you sort the list appears as:<br><br>A1<br>A2<br>A3<br>A10<br>A200<br><br>Of course, I don't want the user to see the padded out numbers, so I use the Value property for them. The user can type codes like A1, A2, etc... and they will now be sorted "correctly" but look just as they type them in the cell display and edit box. Lastly, different leading alpha characters (A, B, C, etc...) can have a different colour associated with them, so I want to use the Metrics.Text property to display the cell in a custom format.<br><br>I'm not sure why the edit window for a cell is defaulting to the Metrics.Text value - I've even tried changing the Metrics.Text property to Item.Caption in the RequestEdit and BeforeDrawRow events, but I haven't had any luck getting the edit window text to appear without markup tags...<br><br>I'll keep experimenting and also open a ticket.<br><br>Thanks for your help, Merry Christmas!<br>]]>
   </description>
   <pubDate>Wed, 22 Dec 2010 18:30:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13599&amp;PID=61961&amp;title=bug-metrics-for-report-item-doesnt-show-markup#61961</guid>
  </item> 
  <item>
   <title><![CDATA[[BUG] Metrics for Report Item doesn&#039;t show markup :   jpbro wrote:Sorry to drag up...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13599&amp;PID=61955&amp;title=bug-metrics-for-report-item-doesnt-show-markup#61955</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 13599<br /><strong>Posted:</strong> 22 December 2010 at 12:14pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by jpbro" alt="Originally posted by jpbro" style="vertical-align: text-bottom;" /> <strong>jpbro wrote:</strong><br /><br /><FONT color=#cccccc>Sorry to drag up an old post, but I have a question about Metrics.Text and some behaviour that I find strange (and some behaviour that I require).<BR><BR></FONT>Why does the edit cell text appear with the markup tags if I only set the Metrics.Text property in the BeforeDrawRow event? My impression was that the Metrics object was for dynamic display purposes only, and the Caption property would be used for the edit cell text (or anywhere the Metrics.Text property wasn't set).<BR><BR>So my questions are:<BR>1) Is this a bug?<BR>2) If no to #1, is there a way to accomplish what I would like to do with the current ReportControl state?<BR>3) If no to #2, can we have a way to accomplish this for the next version?<BR><BR><FONT color=#cccccc>Thanks for any insights and help.<BR><BR></FONT><BR><FONT color=#cccccc>Also, here's a test project if required:<BR><BR></FONT><a href="uploads/2676/RcEditMarkup.zip" target="_blank"><FONT color=#cccccc>uploads/2676/RcEditMarkup.zip</FONT></A><BR><BR><BR></td></tr></table> <DIV>&nbsp;</DIV><DIV>Hi Jason,</DIV><DIV>&nbsp;</DIV><OL><LI>O.... my....God....&nbsp; Someone fu**ed up the&nbsp;ReportControl. You are right, Metrics object is designed for dynamic display purposes ONLY.</LI><LI>What kind of sorting do you mean. RC supports sorting DATE &amp; TIME values, numbers (int,long etc etc) and ordinary strings of course...</LI><LI>Depending what you mean by 2. <img src="http://forum.codejock.com/smileys/smiley36.gif" height="17" width="17" border="0" alt="LOL" title="LOL" /></LI></OL><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 22 Dec 2010 12:14:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13599&amp;PID=61955&amp;title=bug-metrics-for-report-item-doesnt-show-markup#61955</guid>
  </item> 
  <item>
   <title><![CDATA[[BUG] Metrics for Report Item doesn&#039;t show markup : Sorry to drag up an old post,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13599&amp;PID=61953&amp;title=bug-metrics-for-report-item-doesnt-show-markup#61953</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 13599<br /><strong>Posted:</strong> 22 December 2010 at 11:06am<br /><br />Sorry to drag up an old post, but I have a question about Metrics.Text and some behaviour that I find strange (and some behaviour that I require).<br><br>First, I want:<br><br>1) To be able to sort a report control column by a value that is different from what is displayed (easy). <br>2) The cell display should be automatically formatted with markup (easy)<br>3) The user to be able to edit a cell without any markup text appearing (apparently difficult, but maybe I am missing something).<br><br>I thought that in order to accomplish this, I would:<br><br>1) Set the Value property of a ReportRecordItem to the sortable value (for example, "2010-10-10T00:00:00Z")<br>2) Set the Caption property to the value that the user will edit (for example, "October 10, 2010"), 3) In the BeforeDrawRow event, set the Metrics.Text property to my markup formatted string (for example "&lt;TextBlock&gt;&lt;Span Backcolor='Yellow'&gt;October&lt;/Span&gt; 10, 2010&lt;/TextBlock&gt;" (as long as the PaintManger.ForceDynamicMarkupForCell property was True).<br><br>This works in terms of sorting and displaying marked up values, but when the user tries to edit a cell, this is the result:<br><br><img src="uploads/2676/edit_markup.jpg" height="362" width="513" border="0" /><br><br>Why does the edit cell text appear with the markup tags if I only set the Metrics.Text property in the BeforeDrawRow event? My impression was that the Metrics object was for dynamic display purposes only, and the Caption property would be used for the edit cell text (or anywhere the Metrics.Text property wasn't set).<br><br>So my questions are:<br>1) Is this a bug?<br>2) If no to #1, is there a way to accomplish what I would like to do with the current ReportControl state?<br>3) If no to #2, can we have a way to accomplish this for the next version?<br><br>Thanks for any insights and help.<br><br><br>Also, here's a test project if required:<br><br><a href="uploads/2676/RcEditMarkup.zip" target="_blank">uploads/2676/RcEditMarkup.zip</a><br><br><br>]]>
   </description>
   <pubDate>Wed, 22 Dec 2010 11:06:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13599&amp;PID=61953&amp;title=bug-metrics-for-report-item-doesnt-show-markup#61953</guid>
  </item> 
  <item>
   <title><![CDATA[[BUG] Metrics for Report Item doesn&#039;t show markup : Hi Mark,I&amp;#039;ve just tested...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13599&amp;PID=48712&amp;title=bug-metrics-for-report-item-doesnt-show-markup#48712</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 13599<br /><strong>Posted:</strong> 06 May 2009 at 2:08pm<br /><br />Hi Mark,<br><br>I've just tested this build as well, and everything looks perfect! Thanks a lot for all of your hard work on this issue.<br>]]>
   </description>
   <pubDate>Wed, 06 May 2009 14:08:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13599&amp;PID=48712&amp;title=bug-metrics-for-report-item-doesnt-show-markup#48712</guid>
  </item> 
  <item>
   <title><![CDATA[[BUG] Metrics for Report Item doesn&#039;t show markup : Hi Mark,  It looks OK to me,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13599&amp;PID=48711&amp;title=bug-metrics-for-report-item-doesnt-show-markup#48711</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 13599<br /><strong>Posted:</strong> 06 May 2009 at 1:31pm<br /><br />Hi Mark,<DIV>&nbsp;</DIV><DIV>It looks OK to me, resizing goes well with both RC's and scrollbars are visible when needed.</DIV><DIV>&nbsp;</DIV><DIV>Good job <img src="https://forum.codejock.com/smileys/smiley4.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 06 May 2009 13:31:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13599&amp;PID=48711&amp;title=bug-metrics-for-report-item-doesnt-show-markup#48711</guid>
  </item> 
  <item>
   <title><![CDATA[[BUG] Metrics for Report Item doesn&#039;t show markup :   Thanks - I just tried to find...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13599&amp;PID=48709&amp;title=bug-metrics-for-report-item-doesnt-show-markup#48709</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13599<br /><strong>Posted:</strong> 06 May 2009 at 11:09am<br /><br /><a href="http://forum.codejock.com/uploads/20090506_110957_RCRedrawMod.rar" target="_blank"><DIV><DIV>Thanks - I just tried to find the best initial setup to make Jason model properly work. </DIV><DIV>Try this one please - </DIV></DIV><DIV>&nbsp;</DIV><DIV>uploads/20090506_110957_RCRedrawMod.rar</A></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 06 May 2009 11:09:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13599&amp;PID=48709&amp;title=bug-metrics-for-report-item-doesnt-show-markup#48709</guid>
  </item> 
  <item>
   <title><![CDATA[[BUG] Metrics for Report Item doesn&#039;t show markup : Hi Mark,  I don&amp;#039;t know...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13599&amp;PID=48693&amp;title=bug-metrics-for-report-item-doesnt-show-markup#48693</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 13599<br /><strong>Posted:</strong> 06 May 2009 at 1:19am<br /><br />Hi Mark,<DIV>&nbsp;</DIV><DIV>I don't know what to look for but the only thing I see is that horizontal scrollbar becomes visible when <strong>last column</strong> isn't visible anymore (during sizing of form) And sometimes (I saw this about three times)&nbsp;when clicking on scrollbar, the scrollbar becomes invisible but I noticed that RC is 1 pixel wider when this happens...</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 06 May 2009 01:19:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13599&amp;PID=48693&amp;title=bug-metrics-for-report-item-doesnt-show-markup#48693</guid>
  </item> 
 </channel>
</rss>