﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - manage spaces into strings</title><link>http://www.intersoftsolutions.com/Community/WebGrid/manage-spaces-into-strings/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>manage spaces into strings</title><link>http://www.intersoftsolutions.com/Community/WebGrid/manage-spaces-into-strings/</link><pubDate>Tue, 29 Sep 2009 05:30:47 GMT</pubDate><dc:creator>vangeloni</dc:creator><category>WebGrid</category><description>&lt;p&gt;I am using the WebCombo as editType, We need to maintain the the space in the cell after the selection of the webcomboRow.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Vince&lt;br /&gt;&lt;/p&gt;</description></item><item><title>manage spaces into strings</title><link>http://www.intersoftsolutions.com/Community/WebGrid/manage-spaces-into-strings/</link><pubDate>Tue, 29 Sep 2009 05:23:39 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid</category><description>&lt;p&gt;Yes, that's exactly i tried to inform you at my previous post. In fact, it is html behaviour. We have not designed to handle that way. But it seems if you are using TextEditor, it can mantain "string".&lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>manage spaces into strings</title><link>http://www.intersoftsolutions.com/Community/WebGrid/manage-spaces-into-strings/</link><pubDate>Tue, 29 Sep 2009 05:05:36 GMT</pubDate><dc:creator>vangeloni</dc:creator><category>WebGrid</category><description>&amp;nbsp;Hi,&lt;p&gt;using the InitializeRow I fix the problem when we show data.&lt;/p&gt;
&lt;p&gt;Anyway I have the problem when I exit from the edit mode because I insert space chars but when I exit the edit mode on the cell the i lost the spaces and I have only one space char, I need to maintain the space chars.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Vince&lt;br /&gt;&lt;/p&gt;</description></item><item><title>manage spaces into strings</title><link>http://www.intersoftsolutions.com/Community/WebGrid/manage-spaces-into-strings/</link><pubDate>Mon, 28 Sep 2009 05:53:32 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi Vince,&lt;/p&gt;&lt;p&gt;In fact, the spaces only can be handled when the row did update after exit edit mode. If you only exit edit mode without update, InitializeRow will not be called. Also, I am not prefer you did this scenario on WebGrid. Since user can insert or update with any values via textbox they wanted to, how can you validate them one by one in InitializeRow dynamically?&lt;br /&gt;&lt;br /&gt;(Note:You will need to set EditType Custom)&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>manage spaces into strings</title><link>http://www.intersoftsolutions.com/Community/WebGrid/manage-spaces-into-strings/</link><pubDate>Thu, 24 Sep 2009 05:48:12 GMT</pubDate><dc:creator>vangeloni</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;i insert spaces on Editing mode ('C000[4 spaces]1') but when i exit from edit mode in the textBox (cell Element) I see only one space ('C000 1').&lt;/p&gt;
&lt;p&gt;I need to maintain the spaces after the edit mode.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Vince&lt;br /&gt;&lt;/p&gt;</description></item><item><title>manage spaces into strings</title><link>http://www.intersoftsolutions.com/Community/WebGrid/manage-spaces-into-strings/</link><pubDate>Thu, 24 Sep 2009 03:33:03 GMT</pubDate><dc:creator>vangeloni</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;your workaround is ok for webcombocolumn, instead on webgrid into the cell now I have &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;"C001&amp;nbsp;000&amp;nbsp;003&amp;nbsp;005&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1"&lt;/p&gt;
&lt;p&gt;we do not have space but the space char &amp;nbsp; &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Why the workaround does not work for webgrid?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Vince&lt;br /&gt;&lt;/p&gt;</description></item><item><title>manage spaces into strings</title><link>http://www.intersoftsolutions.com/Community/WebGrid/manage-spaces-into-strings/</link><pubDate>Wed, 23 Sep 2009 23:45:38 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi Vince,&lt;/p&gt;&lt;p&gt;As Gordon said, it follows HTML behavior. Actually, there is another workaround. You will need to specify each row &lt;b&gt;&lt;i&gt;OnIntializeRow&lt;/i&gt;&lt;span style="font-weight: normal; "&gt; event &lt;/span&gt;&lt;/b&gt;and fill the text manually. Replace "space" with " ". Here, I attached my simple sample. Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>manage spaces into strings</title><link>http://www.intersoftsolutions.com/Community/WebGrid/manage-spaces-into-strings/</link><pubDate>Wed, 23 Sep 2009 23:01:29 GMT</pubDate><dc:creator>gordont</dc:creator><category>WebGrid</category><description>&lt;p&gt;Hi Vince,&lt;/p&gt;
&lt;p&gt;It is because HTML does not recognize tab character or spaces. You can try to write '&lt;span style="font-size: 13px"&gt;C001 000 001 005&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1' in the html page and you will see that the result will be '&lt;span style="font-size: 13px"&gt;C001 000 001 005 1'.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Gordon Tumewu&lt;/p&gt;</description></item><item><title>manage spaces into strings</title><link>http://www.intersoftsolutions.com/Community/WebGrid/manage-spaces-into-strings/</link><pubDate>Wed, 23 Sep 2009 09:31:11 GMT</pubDate><dc:creator>vangeloni</dc:creator><category>WebGrid</category><description>We have the following behaviour:&lt;br /&gt;into the database we have the string value: &lt;br /&gt;'C001 000 001 005&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1'&lt;br /&gt;instead when we see the value on grid cell or webCombo we see:&lt;br /&gt;'C001 000 001 005 1'&lt;br /&gt;we do not have all spaces, so we have problems.&lt;br /&gt;&lt;br /&gt;In this case when we insert manually the value in the webcombo textbox:&lt;br /&gt;'C001 000 001 005 1'&lt;br /&gt;in the result box we have no results because on database we have:&lt;br /&gt;'C001 000 001 005&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1'&lt;br /&gt;&lt;br /&gt;We need to maintain the spaces into the string.&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Vince&lt;br /&gt;</description></item></channel></rss>