﻿<?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 - Unable to input date with WebInput integrate into WebGrid, produce javascript error</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Unable-to-input-date-with-WebInput-integrate-into-WebGrid/</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>Unable to input date with WebInput integrate into WebGrid, produce javascript error</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Unable-to-input-date-with-WebInput-integrate-into-WebGrid/</link><pubDate>Mon, 16 May 2011 06:08:45 GMT</pubDate><dc:creator>MarTin</dc:creator><category>WebGrid</category><category>WebInput</category><category>Javascript Error</category><category>Date</category><category>Integrate</category><category>WebInput.Net</category><category>DateTime</category><description>&lt;p&gt;Hello Fung,&lt;/p&gt;
&lt;p&gt;It seems that you need to enter edit mode in order to configure the WebInput. Otherwise, you will get error when you type something in highlight mode.&lt;/p&gt;
&lt;p&gt;You can try to set CellClickAction to CellSelect under LayoutSettings: &lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGrid ID="wg" runat="server" Height="250px" Width="500px"&amp;gt;
   &amp;lt;LayoutSettings CellClickAction="CellSelect"&amp;gt;&lt;/pre&gt;
&lt;p&gt;Then, use the following code in OnCellSelect client-side event:&lt;/p&gt;&lt;pre&gt;function wg_OnCellSelect(controlId, tblName, rowIndex, cellIndex)
{
   var wg = ISGetObject(controlId); 
			
   if (cellIndex == 2)
      wg.LayoutSettings.Set("EditOnClick", true, true);
   else
      wg.LayoutSettings.Set("EditOnClick", false, false);

   return true;
}&lt;/pre&gt;

&lt;p&gt;This code will implement edit mode only when you click any cell on DateTime column.&lt;/p&gt;
&lt;p&gt;Attached is the sample for your reference.  &lt;/p&gt;</description></item><item><title>Unable to input date with WebInput integrate into WebGrid, produce javascript error</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Unable-to-input-date-with-WebInput-integrate-into-WebGrid/</link><pubDate>Fri, 13 May 2011 02:53:20 GMT</pubDate><dc:creator>interfung</dc:creator><category>WebGrid</category><category>WebInput</category><category>Javascript Error</category><category>Date</category><category>Integrate</category><category>WebInput.Net</category><category>DateTime</category><description>&lt;p&gt;Hi Martin,&lt;/p&gt;&lt;p&gt;The file is uploaded and tested to be able to download. Please have a look.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks and Regards,&lt;/p&gt;
&lt;p&gt;Fung&lt;/p&gt; </description></item><item><title>Unable to input date with WebInput integrate into WebGrid, produce javascript error</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Unable-to-input-date-with-WebInput-integrate-into-WebGrid/</link><pubDate>Wed, 11 May 2011 16:32:54 GMT</pubDate><dc:creator>MarTin</dc:creator><category>WebGrid</category><category>WebInput</category><category>Javascript Error</category><category>Date</category><category>Integrate</category><category>WebInput.Net</category><category>DateTime</category><description>&lt;p&gt;Hello Fung,&lt;/p&gt;
&lt;p&gt;I tried to create sample following your scenario, and I couldn't replicate your issue on my end. When I type 01, WebInput will automatically change to 1.&lt;/p&gt;
&lt;p&gt;I couldn't download your attachment. Maybe the attachments was corrupted. Could you please re-send the attachment?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;-Martin-&lt;/p&gt;</description></item><item><title>Unable to input date with WebInput integrate into WebGrid, produce javascript error</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Unable-to-input-date-with-WebInput-integrate-into-WebGrid/</link><pubDate>Wed, 11 May 2011 00:13:10 GMT</pubDate><dc:creator>interfung</dc:creator><category>WebGrid</category><category>WebInput</category><category>Javascript Error</category><category>Date</category><category>Integrate</category><category>WebInput.Net</category><category>DateTime</category><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;When I move the &lt;b&gt;highlight&lt;/b&gt; (&lt;b&gt;not in EditMode&lt;/b&gt;) to the cell (integrated with WebInput) and start typing "0" (e.g. "01"), the page produce a javascript error, and unable to finish the input. If the input starts with a non-zero character(e.g."11") the input is able to be finished, but the cell will show nothing after finish input.&lt;/p&gt;
&lt;p&gt;Is there any way to work around for this issue?&lt;/p&gt;
&lt;p&gt;Thanks and Regards,&lt;/p&gt;
&lt;p&gt;Fung&lt;/p&gt;</description></item></channel></rss>