<?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 does not pop up</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/date-picker-does-not-pop-up</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-does-not-pop-up/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>phamtranquocviet on Date picker does not pop up</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/date-picker-does-not-pop-up#p14668</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/date-picker-does-not-pop-up#p14668</guid>
        	        	<description><![CDATA[<p>All,</p>
<p>I finally figured it out. My and my stupid had two lines of editRow like below. Don&#39;t ask me why.</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#training&#39;).jqGrid(&#39;editRow&#39;, id, true); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#training&#39;).jqGrid(&#39;editRow&#39;, id, true, pickdates);</p>
<p>it&#39;s smart enough not to execute the second line. After taking the first line out, the datepicker appears under the form. I had to do this:</p>
<p>&#160;&#160;&#160; &#60;head&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;style&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .ui-datepicker { z-index:2000; font-size: 0.6em;}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;/style&#62;<br />&#160;&#160;&#160; &#60;/head&#62;</p>
<p>to bring the it to the front.</p>
<p>Just want to put it here in case somebody runs into it.</p>
]]></description>
        	        	<pubDate>Wed, 10 Feb 2010 06:15:47 +0200</pubDate>
        </item>
        <item>
        	<title>phamtranquocviet on Date picker does not pop up</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/date-picker-does-not-pop-up#p14642</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/date-picker-does-not-pop-up#p14642</guid>
        	        	<description><![CDATA[<p>Hi All,</p>
<p>My datepicker does not popup. So, I debug by putting in 3 alerts:</p>
<p>alert(&#39;ID1&#39; + id)</p>
<p>$(&#39;#training&#39;).jqGrid(&#39;editRow&#39;, id, true, pickdates);</p>
<p>alert(&#39;ID3: &#39; + id);</p>
<p>and</p>
<p>alert(&#39;ID2: &#39; + id); inside pickdates function.</p>
<p>Please tell me why alert(&#39;ID2&#39; + id) never pops up.</p>
<p><strong>Here is my html codes:</strong></p>
<p>&#60;html&#62;<br />&#160;&#160;&#160; &#60;head&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;link rel=&#39;stylesheet&#39; type=&#39;text/css&#39; href=&#39;css/theme/redmond/ui.all.css&#39;/&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;link rel="stylesheet" type="text/css" href="css/theme/my-ui.css"/&#62;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;script type=&#39;text/javascript&#39; src=&#39;js/jquery/jquery-ui.min.js&#39;&#62;&#60;/script&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;script type=&#39;text/javascript&#39; src=&#39;js/admin/training/TrainingMgr.js&#39;&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;/head&#62;<br />&#160;&#160;&#160; &#60;body&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;table id=&#39;training&#39;&#62;&#60;/table&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;div id=&#39;pager&#39;&#62;&#60;/div&#62;<br />&#160;&#160;&#160; &#60;/body&#62;<br />&#60;/html&#62;</p>
<p><strong>Here is my js codes:</strong></p>
<p>var lastRowId;<br />$("#training").jqGrid<br />(<br />&#160;&#160;&#160; {&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; url:&#39;index.php?func=trainingmgr&#38;aAction=loadData&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;json&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames:[&#39;Type&#39;, &#39;Title&#39;, &#39;Eff Date&#39;, &#39;Expr Date&#39;, &#39;Href&#39;,&#39;Status&#39;, &#39;Rec Date&#39;, &#39;Role&#39;, &#39;Notes&#39;], <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel:[<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;Type&#39;, index:&#39;Type&#39;, width:100, sortable:true, editable:true, edittype:&#39;select&#39;, editoptions:{value:&#39;1:Recruitment;2:Transactions;3:IT&#39;}}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;Title&#39;, index:&#39;Title&#39;, width:150, sortable:true, editable:true}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;EffDate&#39;, index:&#39;EffDate&#39;, width:70, sortable:true, align:&#39;center&#39;, editable:true, sorttype:&#39;date&#39;}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;ExprDate&#39;, index:&#39;ExprDate&#39;, width:70, align:&#39;center&#39;, editable:true, sorttype:&#39;date&#39;}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;Href&#39;, index:&#39;Href&#39;, width:100, align:&#39;left&#39;, editable:true}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;Status&#39;, index:&#39;Status&#39;, width:50, sortable:true, align:&#39;left&#39;, editable:true}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;RecDate&#39;, index:&#39;RecDate&#39;, width:70, align:&#39;center&#39;, editable:true, sorttype:&#39;date&#39;}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;Role&#39;, index:&#39;Role&#39;, width:80, align:&#39;left&#39;, editable:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;Note&#39;, index:&#39;Note&#39;, width:50, align:&#39;left&#39;, resizable:false, editable:true} <br />&#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; onSelectRow: function(id)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if(id &#38;&#38; id !== lastRowId)<br />&#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; //Switch the editable interface off for the last row<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#training&#39;).jqGrid(&#39;restoreRow&#39;, lastRowId); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#training").jqGrid(&#39;setSelection&#39;, lastRowId); </p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //Switch editable interface on for current row<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#training&#39;).jqGrid(&#39;editRow&#39;, id, true); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(&#39;ID1: &#39; + id);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#training&#39;).jqGrid(&#39;editRow&#39;, id, true, pickdates); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(&#39;ID3: &#39; + id);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; lastRowId = id; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }, &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum:10, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rownumbers: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: &#39;#pager&#39;, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;Type&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: &#39;asc&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; multiselect: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; editurl: "index.php", <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption:&#39;Training Manager&#39;<br />&#160;&#160;&#160; }&#160; &#160;<br />); </p>
<p>$("#training").jqGrid(&#39;navGrid&#39;,&#39;#pager&#39;,{edit:true, add:true, del:true});<br />$("#training").jqGrid(&#39;gridResize&#39;,{minWidth:550, maxWidth:800, minHeight:80, maxHeight:350});</p>
<p>function pickdates(id)<br />{ <br />&#160;&#160;&#160; alert(&#39;ID2: &#39; + id);<br />&#160;&#160;&#160; $(&#39;#&#39; + id + &#39;_EffDate&#39;, &#39;#training&#39;).datepicker({dateFormat:&#39;yy-mm-dd&#39;}); <br />&#160;&#160;&#160; $(&#39;#&#39; + id + &#39;_ExprDate&#39;, &#39;#training&#39;).datepicker({dateFormat:&#39;yy-mm-dd&#39;});<br />&#160;&#160;&#160; $(&#39;#&#39; + id + &#39;_RecDate&#39;, &#39;#training&#39;).datepicker({dateFormat:&#39;yy-mm-dd&#39;});<br />} </p>
]]></description>
        	        	<pubDate>Tue, 09 Feb 2010 04:20:10 +0200</pubDate>
        </item>
</channel>
</rss>