<?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 in pop-up edit form not working...</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/datepicker-in-pop-up-edit-form-not-working</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-in-pop-up-edit-form-not-working/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Datepicker in pop-up edit form not working...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/datepicker-in-pop-up-edit-form-not-working#p2623</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/datepicker-in-pop-up-edit-form-not-working#p2623</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>It is not a jqGrid problem actually. This behavior come from jqModal wich try to focus the first input element if there is form in the modal.</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 21 Oct 2008 01:10:57 +0300</pubDate>
        </item>
        <item>
        	<title>jambrose on Datepicker in pop-up edit form not working...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/datepicker-in-pop-up-edit-form-not-working#p2615</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/datepicker-in-pop-up-edit-form-not-working#p2615</guid>
        	        	<description><![CDATA[<p>OK that sorted that problem out. Thank you. Turns out the datepicker-div was set to 20 or 30 z-index. Took some digging with FireBug to figure that out. Now it shows up properly.</p>
<p>However I've discovered another issue. I have two date fields, one right after the other. If I use the onfocus event, I get them to pop-up, but the second one always seems to populate the first. Actually what happens is I click in the second, the picker pops up, I select a date, it goes away and the first one immediately pops up WITHOUT changing the value of the second text box. If I use the button function, everything works.</p>
<p>Additionally, the onFocus fires when the form loads and I get a datepicker showing right away. This is actually not unexpected since one of the date elements is the first form field so this is probably functioning as usual.</p>
<p>I prefer the button option personally so I'll use that, but it was a little odd. </p>
<p>Thanks!<br />
Jack</p>
]]></description>
        	        	<pubDate>Mon, 20 Oct 2008 13:03:18 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Datepicker in pop-up edit form not working...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/datepicker-in-pop-up-edit-form-not-working#p2592</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/datepicker-in-pop-up-edit-form-not-working#p2592</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Check the z-index of the form and the datepicker.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 19 Oct 2008 07:44:11 +0300</pubDate>
        </item>
        <item>
        	<title>jambrose on Datepicker in pop-up edit form not working...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/datepicker-in-pop-up-edit-form-not-working#p2579</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/datepicker-in-pop-up-edit-form-not-working#p2579</guid>
        	        	<description><![CDATA[<p>OK I messed around some more and got closer. Turns out I had the CSS file missing or something, so it is now displayingâ€¦sort of.</p>
<p>1) It renders BEHIND the form window.</p>
<p>2) when I click on a date, it closes the form window not quite what I want.It appears it is doing a close and not a save (ovbiouslly) since the value never changes.</p>
<p>I believe I'm using jqGrid 3.3 as I just downloaded this the other day.</p>
</p>
<p>Update: Further messing around seems to indicate my problems are with the datepicker appearing behind the edit form. Attempts to tweak z-order have failed (but I believe this was corrected?).</p>
]]></description>
        	        	<pubDate>Fri, 17 Oct 2008 13:33:42 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Datepicker in pop-up edit form not working...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/datepicker-in-pop-up-edit-form-not-working#p2567</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/datepicker-in-pop-up-edit-form-not-working#p2567</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I do not see nothing special here. Verify that datepicker plugin is loaded.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 17 Oct 2008 09:08:17 +0300</pubDate>
        </item>
        <item>
        	<title>jambrose on Datepicker in pop-up edit form not working...</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/datepicker-in-pop-up-edit-form-not-working#p2557</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/datepicker-in-pop-up-edit-form-not-working#p2557</guid>
        	        	<description><![CDATA[<p>I have a onInitializeForm function that is supposed to pop up the datepicker on focus in the edit form. However it never pops up. I also don&#39;t see any JavaScript errors so I&#39;m not sure what is happening.</p>
<p>Grid code as follows. Some of the bits are replaced by ASP.NET when this page is rendered (using the ASP.NET MVC Framework). The grid itself works great, just the date picker won&#39;t show.</p>
<p>&#60;table id="list1" class="scroll"&#62;<br />&#160;&#160;&#160; &#60;/table&#62;</p>
<p>&#160;&#160;&#160; &#60;div id="pager1" class="scroll" style="text-align: center;"&#62;<br />&#160;&#160;&#160; &#60;/div&#62;<br />&#160;&#160;&#160; &#60;script type="text/javascript"&#62;<br />&#160;&#160;&#160; var lastsel;<br />&#160;&#160;&#160; $(document).ready(function(){ <br />&#160;&#160;&#160;&#160;&#160; $("#list1").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; url:&#39;&#60;%=Html.BuildUrlFromExpression&#60;AnnouncementController&#62;(c =&#62; c.ListJSON())%&#62;&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;json&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;GET&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; altRows: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; hidegrid: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; toolbar: [true, &#39;top&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames:[&#39;Actions&#39;,&#39;Id&#39;, &#39;Date&#39;, &#39;Title&#39;, &#39;Text&#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;act&#39;,index:&#39;act&#39;, width:75,sortable:false},&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;id&#39;,index:&#39;id&#39;,width:55,resizable:true, hidden: true, editable:false,editoptions:{readonly:true,size:10}}, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;date&#39;,index:&#39;date&#39;,width:120, resizable:true, sorttype:"date", editable:true,editoptions:{size:20}},<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:400,resizable:true, editable:true,editoptions:{size:50}},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;text&#39;,index:&#39;text&#39;,width:120, hidden:true, resizable:true, editable: true,edittype:"textarea", editoptions:{rows:"2",cols:"20"}},<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; pager: jQuery(&#39;#pager1&#39;),<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum:10,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList:[1, 5,10,20,30],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; multiselect: false, <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;Date&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "desc",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; imgpath: &#39;&#60;%=ResolveUrl("~//Content/jqgrid/themes/basic/images") %&#62;&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; caption: &#39;Announcements&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; editurl: &#39;&#60;%=Html.BuildUrlFromExpression&#60;AnnouncementController&#62;(c =&#62; c.Edit())%&#62;&#39;<br />&#160;&#160;&#160;&#160;&#160; }).navGrid(&#39;#pager1&#39;,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // Pager div<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {add: false, edit:true, del:false, search: false},&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // Options<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {height: 280, width: 500, reloadAfterSubmit: false,&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // Edit Options<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onInitializeForm : function(formid) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#date",formid).datepicker({showOn: &#39;focus&#39;});<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; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {},&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // Add options<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {}&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // Delete Options<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ); <br />&#160;&#160;&#160; });</p>
</p>
<p>Thoughts?</p>
]]></description>
        	        	<pubDate>Thu, 16 Oct 2008 18:47:31 +0300</pubDate>
        </item>
</channel>
</rss>