<?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: Problem with datepicker on navigator</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-datepicker-on-navigator</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/problem-with-datepicker-on-navigator/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Felix on Problem with datepicker on navigator</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-datepicker-on-navigator#p14727</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-datepicker-on-navigator#p14727</guid>
        	        	<description><![CDATA[<p>Sorry Tony, thanks for your help, but not work to me :S Gives me the same error 🙁</p>
]]></description>
        	        	<pubDate>Thu, 11 Feb 2010 18:34:05 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Problem with datepicker on navigator</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-datepicker-on-navigator#p14700</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-datepicker-on-navigator#p14700</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Not sure but the problem is discussed. The problem is that on dataInit function the element is not in the DOM, but before some days I found elegant solution to call the datapicker in editing modules.</p>
</p>
<p>Construct your dataInit the following way</p>
<p><input type='button' class='sfcodeselect' name='sfselectit534' value='Select Code' data-codeid='sfcode534' /></p>
<div class='sfcode' id='sfcode534'>
<p>dataInit: function (el)</p>
<p>{</p>
<p>&#160; setTimeout(function()</p>
<p>&#160; {</p>
<p>&#160;&#160;&#160;&#160; $(el).datepicker();</p>
<p>&#160; },</p>
<p>&#160; 10);</p>
<p>}</p>
</div>
]]></description>
        	        	<pubDate>Wed, 10 Feb 2010 15:54:32 +0200</pubDate>
        </item>
        <item>
        	<title>Felix on Problem with datepicker on navigator</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-datepicker-on-navigator#p14618</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-datepicker-on-navigator#p14618</guid>
        	        	<description><![CDATA[<p>Hi, i need to display an editable date on jqgrid, but firebug throw me this error: "uncaught exception: Missing instance data for this datepicker" I read that it&#39;s an id problem, but i don&#39;t know how to solve :S The problem is when the user clicks on the day, with the keyboard works fine. This is the code, if it helps:</p>
</p>
<p>&#60;style&#62;<br />&#160;&#160; &#160;.ui-datepicker {z-index:1200;}<br />&#160; &#60;/style&#62;<br />&#160; &#160;<br />&#60;script type="text/javascript"&#62;<br />&#160;&#160; &#160;jQuery(document).ready(function()<br />&#160;&#160; &#160;{<br />&#160;&#160; &#160;&#160;&#160; &#160;jQuery("#list_convicts").jqGrid(<br />&#160;&#160; &#160;&#160;&#160; &#160;{<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;url:&#39;../cgi-bin/jqgrid/jqgrid.cgi?t=4&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;json&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;width: 800,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;imgpath: &#39;css/images/jqgrid/ui-darkness&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colNames: [&#39;Name&#39;, &#39;Surname&#39;, &#39;Id&#39;, &#39;Cell&#39;, &#39;Entry Date&#39;, &#39;Exit Date&#39;, &#39;Birth Date&#39;, &#39;Notes&#39;, &#39;Taken Photo&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colModel: [ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name: &#39;Name&#39;, index: &#39;Name&#39;, width: 250, align: &#39;center&#39;, sortable: false, editable: true}, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name: &#39;Surname&#39;, index: &#39;Surname&#39;, width: 250, hidden: true, align: &#39;center&#39;, sortable: false, editable: true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name: &#39;ID&#39;, index: &#39;Id_Convicts&#39;, width: 250, align: &#39;center&#39;, sortable: false, editable: true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name: &#39;Cell&#39;, index: &#39;Cell&#39;, width: 250, align: &#39;center&#39;, sortable: false, editable: true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name: &#39;Entry Date&#39;, index: &#39;Entry_Date&#39;, width: 250, editable:true, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editoptions:{size:12, dataInit:function(el){ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(el).datepicker({dateFormat:&#39;yy-mm-dd&#39;});<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name: &#39;Exit Date&#39;, index: &#39;Exit_Date&#39;, width: 250, editable:true, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editoptions:{size:12, dataInit:function(el1){ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(el1).datepicker({dateFormat:&#39;yy-mm-dd&#39;});<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name: &#39;Birth Date&#39;, index: &#39;Birth_Date&#39;, width: 250, editable:true, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editoptions:{size:12, dataInit:function(el2){ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(el2).datepicker({dateFormat:&#39;yy-mm-dd&#39;});<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name: &#39;Notes&#39;, index: &#39;Notes&#39;, width: 250, align: &#39;center&#39;, sortable: false, editable: true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name: &#39;Taken Photo&#39;, index: &#39;Taken_Photo&#39;, width: 250, align: &#39;center&#39;, sortable: false, editable: false, formatter: &#39;showlink&#39;, formatoptions: {baseLinkUrl: &#39;/cgi-bin/take_photo.cgi&#39;}} <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jsonReader: {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;root: "rows",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;page: "page",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;total: "total",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;records: "records", &#160;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;repeatitems: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;cell: "cell",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;id: "id"<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;savekey: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;pager: jQuery(&#39;#pager_convicts&#39;),<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowNum: 10,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowList: [10, 20, 30],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;viewrecords: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editurl: &#39;../cgi-bin/jqgrid/jqgrid_edit_convicts.cgi&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;caption: &#39;SISP-UCE Configurator&#39;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;).navGrid("#pager_convicts",{view:false, search:false, refresh:false},<br />&#160;&#160; &#160;&#160;&#160; &#160;{recreateForm: true, closeAfterEdit: true, savekey: [true, 13], mtype: &#39;GET&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;{recreateForm: true, closeAfterAdd: true, savekey: [true, 13], mtype: &#39;GET&#39;},<br />&#160;&#160; &#160;&#160;&#160; &#160;{recreateForm: true, closeAfterDel: true, savekey: [true, 13], mtype: &#39;GET&#39;}<br />&#160;&#160; &#160;&#160;&#160; &#160;);<br />&#160;&#160; &#160;}<br />&#160;&#160; &#160;);<br />&#60;/script&#62;</p></p>
]]></description>
        	        	<pubDate>Mon, 08 Feb 2010 10:44:28 +0200</pubDate>
        </item>
</channel>
</rss>