<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>jQuery Grid Plugin - jqGrid - Topic: Using multiple instances of datepicker in a single editable row</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/using-multiple-instances-of-datepicker-in-a-single-editable-row</link>
	<description><![CDATA[Grid plugin]]></description>
	<generator>Simple:Press Version 5.7.5.3</generator>
	<atom:link href="http://www.trirand.com/blog/?page_id=393/help/using-multiple-instances-of-datepicker-in-a-single-editable-row/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Turukawa on Using multiple instances of datepicker in a single editable row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/using-multiple-instances-of-datepicker-in-a-single-editable-row#p25291</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/using-multiple-instances-of-datepicker-in-a-single-editable-row#p25291</guid>
        	        	<description><![CDATA[<p>Very peculiar.&#160; I started my computer this morning, restarted the server and tested the system ... and it works.&#160; Perhaps a cache that wasn&#39;t flushed?&#160; I am using Firebug so will run again with the log and use that for flagging.&#160; Thanks for the advice.</p>
]]></description>
        	        	<pubDate>Thu, 01 Dec 2011 11:01:18 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Using multiple instances of datepicker in a single editable row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/using-multiple-instances-of-datepicker-in-a-single-editable-row#p25277</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/using-multiple-instances-of-datepicker-in-a-single-editable-row#p25277</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I do not see a problem here.</p>
<p>You can use FireBug in FireFox (Chrome has also such tool) to see what is happen.</p>
<p>You can do (Valid only in FireFox)</p>
<p>console.log( varaible )</p>
<p>With other words</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit3589' value='Select Code' data-codeid='sfcode3589' /></p>
<div class='sfcode' id='sfcode3589'>
<p>function pickdate(id){</p>
<p>&#160;&#160;&#160; console.log( id);<br />&#160;&#160; &#160;jQuery(&#34;#&#34;+id+&#34;_start_date&#34;,&#34;#tracker&#34;).datepicker({dateFormat:&#34;yy-mm-dd&#34;}); <br />&#160;&#160; &#160;jQuery(&#34;#&#34;+id+&#34;_end_date&#34;,&#34;#tracker&#34;).datepicker({dateFormat:&#34;yy-mm-dd&#34;}); &#160;<br />}</p>
</p>
</div>
<p>I&#39;m curious. Could you please replace the places of the calling in order to see the result?</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1458' value='Select Code' data-codeid='sfcode1458' /></p>
<div class='sfcode' id='sfcode1458'>
<p>function pickdate(id){</p>
<p>&#160;&#160;&#160; jQuery(&#34;#&#34;+id+&#34;_end_date&#34;,&#34;#tracker&#34;).datepicker({dateFormat:&#34;yy-mm-dd&#34;}); &#160;<br />&#160;&#160; jQuery(&#34;#&#34;+id+&#34;_start_date&#34;,&#34;#tracker&#34;).datepicker({dateFormat:&#34;yy-mm-dd&#34;}); <br />}&#160;</p>
</p>
</div>
<p>&#160;Or just bind it to the end date only.</p>
<p>Please look if you have put other name &#8211; i.e some missspeling error in the name or etc</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 30 Nov 2011 20:20:19 +0200</pubDate>
        </item>
        <item>
        	<title>Turukawa on Using multiple instances of datepicker in a single editable row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/using-multiple-instances-of-datepicker-in-a-single-editable-row#p25272</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/using-multiple-instances-of-datepicker-in-a-single-editable-row#p25272</guid>
        	        	<description><![CDATA[<p>I have only a rudimentary knowledge of jQuery (usually program in Python) so forgive me if there is an obvious answer to this.&#160; I have a table with two instances of a date (start and end for a project).</p>
<p>colModel:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8311' value='Select Code' data-codeid='sfcode8311' /></p>
<div class='sfcode' id='sfcode8311'>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; {name: &#34;start_date&#34;, index: &#34;start_date&#34;, width: 100, editable: true, sorttype:&#34;date&#34;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name: &#34;end_date&#34;, index: &#34;end_date&#34;, width: 100, editable: true, sorttype:&#34;date&#34;},</div>
<p>And an onclick model:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8125' value='Select Code' data-codeid='sfcode8125' /></p>
<div class='sfcode' id='sfcode8125'>&#160;&#160;&#160; ondblClickRow: function(id){ <br />&#160;&#160; &#160;&#160;&#160; &#160;if(id &#38;&#38; id!==projectselect){ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery(&#39;#tracker&#39;).jqGrid(&#39;restoreRow&#39;,projectselect); <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery(&#39;#tracker&#39;).jqGrid(&#39;editRow&#39;,id,true,pickdate);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;projectselect=id; } <br />&#160;&#160; &#160;&#160;&#160; &#160;},</div>
<p>With the pickdate function:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit718' value='Select Code' data-codeid='sfcode718' /></p>
<div class='sfcode' id='sfcode718'>function pickdate(id){<br />&#160;&#160; &#160;jQuery(&#34;#&#34;+id+&#34;_start_date&#34;,&#34;#tracker&#34;).datepicker({dateFormat:&#34;yy-mm-dd&#34;}); <br />&#160;&#160; &#160;jQuery(&#34;#&#34;+id+&#34;_end_date&#34;,&#34;#tracker&#34;).datepicker({dateFormat:&#34;yy-mm-dd&#34;}); &#160;<br />}</div>
<p>When I edit then only the start_date cell has the datepicker (or the other way round if I swap whichever is called first).&#160; I realise this probably has something to do with the id not being unique but I&#39;ve no idea how to check this.</p>
<p>I would also like to check whether the start_date is less than the end_date, but that isn&#39;t as critical as simply getting the two instances to work.</p>
<p>Apologies if this has been asked elsewhere but I couldn&#39;t find any answers on this.</p>
<p>Thanks and any help much appreciated.</p>
]]></description>
        	        	<pubDate>Wed, 30 Nov 2011 13:48:47 +0200</pubDate>
        </item>
</channel>
</rss>