<?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: Date Picker Problem</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/date-picker-problem</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/date-picker-problem/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Jbrandolino on Date Picker Problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/date-picker-problem#p22113</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/date-picker-problem#p22113</guid>
        	        	<description><![CDATA[<p>Was able to get the datepicker to open with this code:</p>
<p>{name:&#39;effDT&#39;,index:&#39;effDT&#39;, sorttype:"date", width:40, editable:<strong>true,</strong></p>
<p>editoptions: {size: 10, maxlengh: 10,dataInit:<strong>function(element)</strong></p>
<p>{$(element).datepicker()}}},</p>
</p>
<p>I was then getting &#39;URL not set&#39; error, so I added this code to the grid definition:</p>
<p>editurl:&#39;url&#39;,</p>
<p>cellsubmit:&#39;clientArray&#39;,<span id="_marker">&#160;</span></p>
<p><span>&#160;</span></p>
<p><span>Now have new issue with date not getting set when user doesn&#39;t click elsewhere in grid.&#160; See new post.</span></p>
]]></description>
        	        	<pubDate>Thu, 17 Feb 2011 16:03:33 +0200</pubDate>
        </item>
        <item>
        	<title>Jbrandolino on Date Picker Problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/date-picker-problem#p22096</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/date-picker-problem#p22096</guid>
        	        	<description><![CDATA[<p>I added the SetTimeOut() and now the datepicker calendar won&#39;t pop up.&#160;</p>
</p>
<p>{name:&#39;effDT&#39;,index:&#39;effDT&#39;, sorttype:"date", width:40, editable:<strong>true,</strong></p>
<p>editoptions: {size: 10, maxlengh: 10,dataInit:<strong>function (elem) { setTimeout(</strong><strong>function(){</strong></p>
<p>$(elem).datepicker();}, 100); }}},</p>
</p>
<p>Any Suggestions?</p>
]]></description>
        	        	<pubDate>Tue, 15 Feb 2011 20:19:34 +0200</pubDate>
        </item>
        <item>
        	<title>admin on Date Picker Problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/date-picker-problem#p22095</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/date-picker-problem#p22095</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Please use setTimeout when set datepicker.</p>
<p>Please look the red text here :</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:common_rules&#038;s=datepicker#editoptions" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....ditoptions</a></p>
<p>I&#39;m not sure that all documentation is updated.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 15 Feb 2011 20:01:54 +0200</pubDate>
        </item>
        <item>
        	<title>Jbrandolino on Date Picker Problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/date-picker-problem#p22094</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/date-picker-problem#p22094</guid>
        	        	<description><![CDATA[<p>It is in the right place, for some reason when I pasted it into the browser, it didn&#39;t stay formatted correctly.&#160; This is what I have:</p>
</p>
<p>{name:&#39;effDT&#39;,index:&#39;effDT&#39;, sorttype:"date", width:40, editable:<strong>true,</strong>editoptions: {size: 10, maxlengh: 10,dataInit:</p>
<p><strong>function (elem) {$(elem).datepicker();}}},</strong></p>
]]></description>
        	        	<pubDate>Tue, 15 Feb 2011 19:06:31 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Date Picker Problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/date-picker-problem#p22083</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/date-picker-problem#p22083</guid>
        	        	<description><![CDATA[<p>Why you place <strong></strong><strong>function (elem) {&#160;</strong>in the absolutely wrong place before <strong>editoptions</strong>? It must be after <strong>dataInit:</strong>.</p>
]]></description>
        	        	<pubDate>Mon, 14 Feb 2011 19:45:06 +0200</pubDate>
        </item>
        <item>
        	<title>Jbrandolino on Date Picker Problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/date-picker-problem#p22082</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/date-picker-problem#p22082</guid>
        	        	<description><![CDATA[<p>Thank you.&#160; I changed my datainit to</p>
<p align="left">{name:&#39;effDT&#39;,index:&#39;effDT&#39;, sorttype:"date", width:40, editable:<strong>true,</strong><strong>function (elem) {</strong></p>
<p align="left">editoptions: {size: 10, maxlengh: 10,dataInit:</p>
<p>$(elem).datepicker();}}},</p>
</p>
<p>It still does not keep the date that&#39;s selected from the calendar once you move off of the cell.&#160; Any ideas?</p>
]]></description>
        	        	<pubDate>Mon, 14 Feb 2011 19:33:28 +0200</pubDate>
        </item>
        <item>
        	<title>OlegK on Date Picker Problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/date-picker-problem#p22080</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/date-picker-problem#p22080</guid>
        	        	<description><![CDATA[<p>It seems to me that you use dataInit function in absolutely wrong way.&#160;</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5319' value='Select Code' data-codeid='sfcode5319' /></p>
<div class='sfcode' id='sfcode5319'>dataInit: function (elem) {<br />&#160;&#160; &#160;$(elem).datepicker();<br /> }</div>
<p>or something like</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6394' value='Select Code' data-codeid='sfcode6394' /></p>
<div class='sfcode' id='sfcode6394'>dataInit: function (elem) {<br />&#160;&#160; &#160;setTimeout(function(){<br />&#160;&#160; &#160; &#160; &#160;$(elem).datepicker();<br />&#160;&#160; &#160;}, 100);<br /> }</div>
<p>Please compare both examples with your code.</p>
<p>Moreover I see no sense to call reload the full grid just if the user select date: you use jQuery("#permitList").trigger("reloadGrid"); which do this.</p>
<p>Best regards<br />Oleg&#160;</p>
]]></description>
        	        	<pubDate>Mon, 14 Feb 2011 19:18:35 +0200</pubDate>
        </item>
        <item>
        	<title>Jbrandolino on Date Picker Problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/date-picker-problem#p22078</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/date-picker-problem#p22078</guid>
        	        	<description><![CDATA[<p>Has anyone had this issue?</p>
]]></description>
        	        	<pubDate>Mon, 14 Feb 2011 15:54:41 +0200</pubDate>
        </item>
        <item>
        	<title>Jbrandolino on Date Picker Problem</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/date-picker-problem#p22018</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/date-picker-problem#p22018</guid>
        	        	<description><![CDATA[<p>Need Help Please!&#160; I have implemented a date picker on my JQGrid.&#160; The problem is that when the calender pops up and you select a date, and move to another cell, the date disappears.&#160; I had it working, but only when calling a reloadGrid from an onSelect function (EX #1 below).&#160; I&#39;ve added other code to color code rows, and am having the same problem again.&#160;</p>
</p>
<p>EX #1</p>
<p align="left">{name:&#160;&#39;effDT&#39;,index:&#39;effDT&#39;, sorttype:"date", width:40, editable:<strong>true,</strong></p>
<p align="left">editoptions: {size: 10, maxlengh: 10,dataInit:{$(element).datepicker({onSelect: getDt(dateText, inst); }})}}},</p>
<p>
<strong></strong></p>
<p align="left">function getDt(dateText, inst) {</p>
<p><span style="font-size: x-small;"></span></p>
<p>&#160;&#160;&#160;&#160; jQuery(</p>
</p>
<p><span style="color: #2a00ff; font-size: x-small;"><span style="color: #2a00ff; font-size: x-small;">"#permitList"</span></span><span style="font-size: x-small;">).trigger(</span><span style="color: #2a00ff; font-size: x-small;"><span style="color: #2a00ff; font-size: x-small;">"reloadGrid"</span></span><span style="font-size: x-small;">); </span></p>
<p><span style="font-size: x-small;">}</span></p>
</p>
<p>I found an entry on the forum from Tony that said to call the SetTimeout function to correct this error (EX #2 below), but now the calender doesn&#39;t pop up at all.</p>
</p>
<p>EX #2</p>
<p align="left">{name:&#39;effDT&#39;,index:&#39;effDT&#39;, sorttype:"date", width:40, editable:<strong>true,</strong><strong>function(element) </strong></p>
<p align="left">editoptions: {size: 10, maxlengh: 10,dataInit: setTimeout({$(element).datepicker()},300)}},</p>
<p align="left">&#160;</p>
<p align="left">Please help to get this working.</p>
<p align="left">Jennifer</p>
]]></description>
        	        	<pubDate>Wed, 09 Feb 2011 17:10:47 +0200</pubDate>
        </item>
</channel>
</rss>