<?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: Capturing Date in DatePicker if user doesn't click elsewhere in Grid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/capturing-date-in-datepicker-if-user-doesnt-click-elsewhere-in-grid</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/capturing-date-in-datepicker-if-user-doesnt-click-elsewhere-in-grid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Jbrandolino on Capturing Date in DatePicker if user doesn't click elsewhere in Grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/capturing-date-in-datepicker-if-user-doesnt-click-elsewhere-in-grid#p22114</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/capturing-date-in-datepicker-if-user-doesnt-click-elsewhere-in-grid#p22114</guid>
        	        	<description><![CDATA[<p>Got it to work by doing this:</p>
</p>
<p dir="ltr">Declare these variables:</p>
<p><strong>&#160;</strong></p>
</p>
<p dir="ltr">saverow=0;</p>
<p dir="ltr">savecol=0;</p>
<p dir="ltr">&#160;</p>
<p>Then in the afterEditCell (fires before you select a date)</p>
<p><strong></strong></p>
<p>afterEditCell: <strong>function (<span style="text-decoration: underline;">id</span>,name,val,iRow,iCol){</strong></p>
<p dir="ltr">saverow = iRow;</p>
<p dir="ltr">savecol = iCol;</p>
<p>}</p>
<p>
<span style="font-family: Courier New; font-size: x-small;"><span style="font-family: Courier New; font-size: x-small;"></span></span></p>
<p>Then,</p>
<p><span style="font-family: Helv; font-size: x-small;"><span style="font-family: Helv; font-size: x-small;">In my Save function, before I code anything, I do this to set the last entered cell:</span></span></p>
<p>jQuery(</p>
<p>&#39;#permitList&#39;).jqGrid("saveCell",saverow,savecol);<span id="_marker">&#160;</span><span style="font-family: Helv; font-size: x-small;"><span style="font-family: Helv; font-size: x-small;"><span style="font-family: Courier New; font-size: x-small;"><span style="font-family: Courier New; font-size: x-small;"></span></span></span></span></p>
<p>jQuery(</p>
</p>
<p><span style="font-family: Courier New; color: #4200ff; font-size: x-small;"><span style="font-family: Courier New; color: #4200ff; font-size: x-small;"><span style="font-family: Courier New; color: #4200ff; font-size: x-small;">&#39;#permitList&#39;</span></span></span><span style="font-family: Courier New; font-size: x-small;"><span style="font-family: Courier New; font-size: x-small;">).jqGrid(</span></span><span style="font-family: Courier New; color: #4200ff; font-size: x-small;"><span style="font-family: Courier New; color: #4200ff; font-size: x-small;"><span style="font-family: Courier New; color: #4200ff; font-size: x-small;">"saveCell"</span></span></span><span style="font-family: Courier New; font-size: x-small;"><span style="font-family: Courier New; font-size: x-small;">,saverow,savecol); </span></span></p>
<p><span style="font-family: Courier New; font-size: x-small;"><span style="font-family: Courier New; font-size: x-small;"><img class="spSmiley" style="margin:0" title="Laugh" src="/blog/wp-content/forum-smileys/sf-laugh.gif" alt="Laugh" /></span></span></p></p>
]]></description>
        	        	<pubDate>Thu, 17 Feb 2011 16:41:08 +0200</pubDate>
        </item>
        <item>
        	<title>Jbrandolino on Capturing Date in DatePicker if user doesn't click elsewhere in Grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/capturing-date-in-datepicker-if-user-doesnt-click-elsewhere-in-grid#p22112</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/capturing-date-in-datepicker-if-user-doesnt-click-elsewhere-in-grid#p22112</guid>
        	        	<description><![CDATA[<p>I am finally able to get the DatePicker working in JQGrid.&#160; The only issue that I have is if the user selects a date and doesn&#39;t click on another cell before saving data, the date selected from the calendar is not set in the cell.&#160; If I do a getcell, the &#39;defination&#39; of the cell is returned.&#160; If I click on another cell, then do a getcell, the date chosen is returned.&#160;</p>
</p>
<p>Is there a work around for this?</p>
</p>
<p>Jen</p>
]]></description>
        	        	<pubDate>Thu, 17 Feb 2011 16:00:25 +0200</pubDate>
        </item>
</channel>
</rss>