<?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: How to support date?</title>
	<link>http://www.trirand.com/blog/?page_id=393/discussion/how-to-support-date</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/discussion/how-to-support-date/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>marco.laporta on How to support date?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/how-to-support-date#p7206</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/how-to-support-date#p7206</guid>
        	        	<description><![CDATA[<p>I use a custom formatter that use dtpicker.formatDate:</p>
</p>
<p>$.fn.jsDateFormatter = function(cellval, opts, rwdat, act) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var op = $.extend({}, opts.date);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (!isUndefined(opts.colModel.formatoptions)) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; op = $.extend({}, op, opts.colModel.formatoptions);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (!op.reformatAfterEdit &#38;&#38; act == &#39;edit&#39;) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return $.fn.fmatter.defaultFormat(cellval, opts);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (isEmpty(cellval)) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return $.fn.fmatter.defaultFormat(cellval, opts);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var dFormat = opts.newformat;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (!dFormat)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; dFormat = &#39;dd/mm/yy&#39;;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return $.datepicker.formatDate(dFormat, cellval);</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; };</p>
]]></description>
        	        	<pubDate>Fri, 12 Jun 2009 03:16:10 +0300</pubDate>
        </item>
        <item>
        	<title>tony on How to support date?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/how-to-support-date#p5671</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/how-to-support-date#p5671</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Acctually this should work since we make a eval of this string.</p>
<p>Please check what is happen when you apply eval of this string.</p>
<p>Not sure but maybe you should enclose this in barkets.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 30 Mar 2009 03:37:04 +0300</pubDate>
        </item>
        <item>
        	<title>jackysee on How to support date?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/discussion/how-to-support-date#p5643</link>
        	<category>Discussion</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/discussion/how-to-support-date#p5643</guid>
        	        	<description><![CDATA[<p>If the json response of the server is like</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1395' value='Select Code' data-codeid='sfcode1395' /></p>
<div class='sfcode' id='sfcode1395'>{<br /> &#8220;id&#8221;: &#8220;1406701&#8243;,<br /> &#8220;type&#8221;: &#8220;773&#8243;,<br /><strong> &#8220;targetDate&#8221;: new Date(1244527200000),</strong><br /><strong> &#8220;lastModifiedDate&#8221;: new Date(1158142174000),</strong><br /> &#8220;lastModifiedUser&#8221;: &#8220;SUPER&#8221;<br /> }</div>
<p>where the date (in bold) is a native javascript object, <br />the grid render the cell empty. </p>
<p>Can I config the grid to support that?</p>
]]></description>
        	        	<pubDate>Fri, 27 Mar 2009 05:43:55 +0200</pubDate>
        </item>
</channel>
</rss>