﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum / StrataFrame Application Framework / Issues  / Object Mapper Trim Option / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Sat, 22 Nov 2008 07:05:55 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Object Mapper Trim Option</title><link>http://forum.strataframe.net/Topic1370-10-1.aspx</link><description>I'm glad that worked... I'm still checking to see if there is a way to work around it if the BindingUpdateMode is still set to OnPropertyChanged, but it's not looking that way.</description><pubDate>Mon, 05 Jun 2006 10:55:51 GMT</pubDate><dc:creator>Ben Chase</dc:creator></item><item><title>RE: Object Mapper Trim Option</title><link>http://forum.strataframe.net/Topic1370-10-1.aspx</link><description>Ben,&lt;/P&gt;&lt;P style="BACKGROUND: white"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;Thanks for the 'OnValidation' tip. That results in the behavior I was looking for.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="BACKGROUND: white"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;-Larry&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;</description><pubDate>Mon, 05 Jun 2006 10:53:48 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item><item><title>RE: Object Mapper Trim Option</title><link>http://forum.strataframe.net/Topic1370-10-1.aspx</link><description>Hrm.  Thanks for the heads up on that Larry.  I'll check into that.  One think you might do is try changing the BindingUpdateMode on the TextBox control from OnPropertyChanged to OnValidation and see if that helps.  That will set the binding to only push its entered data back to the business object when the control validates.</description><pubDate>Sun, 04 Jun 2006 21:04:49 GMT</pubDate><dc:creator>Ben Chase</dc:creator></item><item><title>Object Mapper Trim Option</title><link>http://forum.strataframe.net/Topic1370-10-1.aspx</link><description>&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;One problem with the new trim options in &lt;?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /&gt;&lt;st1:place w:st="on"&gt;OM&lt;/st1:place&gt; is that if you set “Trim Left and Right” you cannot enter text with an embedded space. &lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;For example if I have a field called business name I would like to allow “Microsoft Corporation” but not “_Microsoft Corporation”, “Microsoft Corporation_“, or &lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;“_ Microsoft Corporation_“. &lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;In this case when you try to enter the blank following “Microsoft” the cursor repositions to the beginning of the text. &lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;The only way to add the space is to insert it after you’ve entered the entire text string. I can code around this but it would be nice if there were some way for the framework to automatically handle it.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;-Larry&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;</description><pubDate>Sat, 03 Jun 2006 17:03:57 GMT</pubDate><dc:creator>Larry Caylor</dc:creator></item></channel></rss>