<?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: JQGrid shows NaN-NaN for date field when new row is added</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-shows-nan-nan-for-date-field-when-new-row-is-added</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/jqgrid-shows-nan-nan-for-date-field-when-new-row-is-added/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>rajeshj_18 on JQGrid shows NaN-NaN for date field when new row is added</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-shows-nan-nan-for-date-field-when-new-row-is-added#p29410</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-shows-nan-nan-for-date-field-when-new-row-is-added#p29410</guid>
        	        	<description><![CDATA[<p>Experts, please help. &#160;thanks.</p>
]]></description>
        	        	<pubDate>Tue, 27 Aug 2013 18:12:15 +0300</pubDate>
        </item>
        <item>
        	<title>rajeshj_18 on JQGrid shows NaN-NaN for date field when new row is added</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-shows-nan-nan-for-date-field-when-new-row-is-added#p29404</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-shows-nan-nan-for-date-field-when-new-row-is-added#p29404</guid>
        	        	<description><![CDATA[<p>Hi all,</p>
<p>am facing a peculiar problem. &#160;i have a jqgrid with a date column. &#160;am doing form edit. &#160;the edit functionality works just fine. &#160;but when i try to add a new row, the popup dialog appears. &#160;the datepicker also appears, when i select the value and hit submit, the date column in the grid is showing Nan-Nan. &#160;i tried to use the same sample given in the website &#160;<a href="http://www.ok-soft-gmbh.com/jqGrid/LocalFormEditing.htm" rel="nofollow" target="_blank"><a href="http://www.ok-soft-gmbh.com/jq" rel="nofollow">http://www.ok-soft-gmbh.com/jq</a>.....diting.htm</a>.</p>
</p>
<p>if i use the same includes given in that website, it works fine. &#160;but i use below one</p>
<p>&#60;script src="~/Scripts/jquery/jquery-1.9.1.min.js"&#62;&#60;/script&#62;</p>
<p>&#60;script src="~/Scripts/jqgrid/js/src/jquery-ui-1.9.2.custom.min.js"&#62;&#60;/script&#62;</p>
<p>&#60;script src="~/Scripts/jqgrid/js/src/i18n/grid.locale-en.js"&#62;&#60;/script&#62;</p>
<p>&#60;script src="~/Scripts/jqgrid/js/src/jquery.jqGrid.js"&#62;&#60;/script&#62;</p>
</p>
<p>my colmodel is</p>
<p>{ name: &#39;SignDate&#39;, index: &#39;SignDate&#39;, width: &#39;200&#39;, jsonmap: &#39;cell.SignDate&#39;, editable: true, sorttype: &#39;date&#39;,</p>
<p>editable: true, formatter: &#39;date&#39;, formatoptions: {</p>
<p>srcformat: &#39;m-d-Y H:i:s&#39;,</p>
<p>newformat:&#39;d-M-Y&#39;&#160;},</p>
<p>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; editoptions: { dataInit: initDateEdit }, &#160;</p>
<p>and initDateEdit has</p>
<p>initDateEdit = function(elem) {</p>
<p>setTimeout(function() {</p>
<p>$(elem).datepicker({</p>
<p>dateFormat: &#39;dd-M-yy&#39;,</p>
</p>
<p>what include am i missing? &#160;kindly help.</p>
</p>
<p>Thanks. &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160;</p>
]]></description>
        	        	<pubDate>Tue, 27 Aug 2013 08:23:59 +0300</pubDate>
        </item>
</channel>
</rss>