<?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: Datepicker pops up when opening the form dialog</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/datepicker-pops-up-when-opening-the-form-dialog</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/datepicker-pops-up-when-opening-the-form-dialog/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Datepicker pops up when opening the form dialog</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/datepicker-pops-up-when-opening-the-form-dialog#p16092</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/datepicker-pops-up-when-opening-the-form-dialog#p16092</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This is true, because when we open the form we focus the first input element &#8211; in your case the datepicker.</p>
<p>In order to resolve this set a option of the datepicker to be opened only on click the field.</p>
<p>See here:</p>
<p><a onclick="javascript:pageTracker._trackPageview(&#39;/outbound/article/http://jqueryui.com/demos/datepicker/#option-showOn&#39;);" rel="nofollow" href="http://jqueryui.com/demos/datepicker/#option-showOn" target="_blank"></a><a href="http://jqueryui.com/demos/date" rel="nofollow" target="_blank">http://jqueryui.com/demos/date</a>.....ion-showOn</p>
</p>
<p>Regards</p>
<p>Tony</p>
<p>Edit - I see there are only two possibilitie&#160; button and focus&#160;</p>
<p>Also maybe you can use afterShowForm in order to focus the second input, not the first, or try to reorder the fields</p>
]]></description>
        	        	<pubDate>Wed, 31 Mar 2010 18:03:51 +0300</pubDate>
        </item>
        <item>
        	<title>downunder on Datepicker pops up when opening the form dialog</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/datepicker-pops-up-when-opening-the-form-dialog#p15963</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/datepicker-pops-up-when-opening-the-form-dialog#p15963</guid>
        	        	<description><![CDATA[<p>I&#39;m useing modal form dialog with datepicker.</p>
</p>
<p>Then problem is now when I open the modal form the datepicker for the first datefield ("start_date") pops up immidiatly. I like to have it open when I click into the datefield.</p>
</p>
<p>any body now how to fix that?</p>
</p>
<p>thanks</p>
</p>
<p>my code:</p>
<p>jQuery("#departuregrid").jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; url:&#39;remote/product.cfc?method=getTourDepartures&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editurl: &#39;remote/product.cfc?method=dodeparture&#39;,&#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;datatype: &#39;json&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; mtype: &#39;POST&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; colNames:[&#39;ID&#39;,&#39;Startdate&#39;,&#39;Enddate&#39;,&#39;Interval&#39;,&#39;Info&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; colModel :[ <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;departure_id&#39;,index:&#39;departure_id&#39;, hidden:true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;start_date&#39;, index:&#39;start_date&#39;, editable:true, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160;&#160; &#160;editoptions:{<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;size:12, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; dataInit:function(el){$(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;sorttype:"date"<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;&#160; {name:&#39;end_date&#39;, index:&#39;end_date&#39;, editable:true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160;&#160; &#160;editoptions:{<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;size:12, <br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; dataInit:function(el){$(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; sorttype:"date"<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; },<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;interval&#39;, index:&#39;interval&#39;, editable:true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; {name:&#39;info&#39;, index:&#39;info&#39;, editable:true, edittype:&#39;text&#39;,editoptions:{size:37}}<br />&#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;key:&#39;departure_id&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; pager: &#39;#dep_pager&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; rowNum:10,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; rowList:[10,20,30],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; sortname: &#39;start_date&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; sortorder: &#39;asc&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;height:"auto",<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;width:&#39;680&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jsonReader: {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;repeatitems : false,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;id: "departure_id"<br />&#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;imgpath: &#39;includes/styles/images&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; caption: &#39;Tours Departures&#39;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; }).navGrid(&#39;#dep_pager&#39;,{edit:true,add:true,del:true,search:false})<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;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;<br />});</p>
]]></description>
        	        	<pubDate>Thu, 25 Mar 2010 18:28:32 +0200</pubDate>
        </item>
</channel>
</rss>