<?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 - what am I doing wrong?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/datepicker-what-am-i-doing-wrong</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-what-am-i-doing-wrong/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Rukbat on Datepicker - what am I doing wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/datepicker-what-am-i-doing-wrong#p24131</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/datepicker-what-am-i-doing-wrong#p24131</guid>
        	        	<description><![CDATA[<p>Just to let you know, Tony, I have this working fine with 4.1.2.&#160; (It&#39;s slow, because I&#39;m doing a linear search of almost 13 million records, but that&#39;s not jqGrid&#39;s fault.)</p>
</p>
<p>Thank you for the code, and thank you for jqGrid.&#160; I&#39;m still learning more about it every day, but there&#39;s always something new to learn about such a complex toy.</p>
</p>
<p>BTW, in trying to get the search window to do a search by pressing Enter, I seem to have found that ui-reset and ui-search are reversed somehow.&#160; ($(".ui-reset").click();&#160;does a search.&#160; $(".ui-search").click(); resets.)</p>
]]></description>
        	        	<pubDate>Wed, 03 Aug 2011 01:07:20 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Datepicker - what am I doing wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/datepicker-what-am-i-doing-wrong#p23956</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/datepicker-what-am-i-doing-wrong#p23956</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The below text is from documentation about the dataInit</p>
<p>Note: Some plugins require the position of the element in the <acronym title="Document Object Model">DOM</acronym> and since this event is raised before inserting the element into the <acronym title="Document Object Model">DOM</acronym> you can use a setTimeout function to accomplish the desired action. This is especially valid for jQuery UI datepicker</p>
</p>
<p>In order to work the datepicer (timepicker, colorpicker) you should do</p>
</p>
<p>&#160;&#160; &#160;&#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;&#160; &#160;&#160;&#160; &#160;{name:&#39;ID&#39;, index:&#39;ID&#39;, width:55},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;Surname&#39;, index:&#39;Surname&#39;, width:90, editable: true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;MyDate&#39;, index:&#39;MyDate&#39;,&#160; width:70, editable:true,<br />&#160;&#160; &#160;&#160;&#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;&#160;&#160;&#160;&#160;&#160; size: 8, maxlength: 10,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160; dataInit: function(el) {<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; setTimeout( function() { $(el).datePicker({dateFormat: &#39;dd-mm-yyyy&#39;});}, 200);<br />&#160;&#160; &#160;&#160;&#160; &#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;&#160;&#160; &#160;&#160;&#160; }<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;],</p>
<p>Please let me know if the avove code work.</p>
</p>
<p>Kind Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 14 Jul 2011 19:43:00 +0300</pubDate>
        </item>
        <item>
        	<title>computergenius on Datepicker - what am I doing wrong?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/datepicker-what-am-i-doing-wrong#p23755</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/datepicker-what-am-i-doing-wrong#p23755</guid>
        	        	<description><![CDATA[<p>Please have a look at my code, I have been round so many times I am going crazy.&#160; I know that I have a stupid mistake in there somewhere.&#160; The javascript executes for the datepicker as the page is loading, I have tracked it via Firebug, but clicking on the date on the edit page does nothing.</p>
</p>
<p>&#160;&#160;&#160; &#60;link rel="stylesheet" type="text/css" href="../css/ui-lightness/jquery-ui-1.7.1.custom.css" /&#62;<br />&#160;&#160; &#160;&#60;link rel="stylesheet" type="text/css" href="../css/ui.jqgrid.css" /&#62;</p>
<p>&#160;&#160; &#160;&#60;script src="../js/jquery-1.5.2.min.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160; &#160;&#60;script src="../js/grid.locale-en.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160; &#160;&#60;script src="../js/jquery.jqGrid.min.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160; &#160;&#60;script src="../js/jquery.datePicker.js" type="text/javascript"&#62;&#60;/script&#62;<br />&#160;&#160; &#160;&#60;script src="../js/date.js" type="text/javascript"&#62;&#60;/script&#62;</p>
<p>&#160;&#160; &#160;&#60;script type=&#39;text/javascript&#39;&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;//&#60;![CDATA[<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery(document).ready(function () {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$(&#39;#list&#39;).jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;url:&#39;getdata2a.php&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;xml&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;mtype: &#39;GET&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colNames:[&#39;ID&#39;, &#39;Surname&#39;, &#39;MyDate&#39;],<br />&#160;&#160; &#160;&#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;&#160; &#160;&#160;&#160; &#160;{name:&#39;ID&#39;, index:&#39;ID&#39;, width:55},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;Surname&#39;, index:&#39;Surname&#39;, width:90, editable: true},<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;MyDate&#39;, index:&#39;MyDate&#39;,&#160; width:70, editable:true,<br />&#160;&#160; &#160;&#160;&#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;&#160;&#160;&#160;&#160;&#160; size: 8, maxlength: 10,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160; dataInit: function(el) {<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; $(el).datePicker({dateFormat: &#39;dd-mm-yyyy&#39;})<br />&#160;&#160; &#160;&#160;&#160; &#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;&#160;&#160; &#160;&#160;&#160; }<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;&#160; &#160;rowNum:10,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowList:[5,10,20],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;editurl: &#39;editdata.php&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;pager: &#39;#pager&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortname: &#39;cliID&#39;,<br />&#160;&#160; &#160;&#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;&#160;&#160; &#160;sortorder: &#39;asc&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;caption: &#39;&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;height: &#39;100%&#39;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}).jqGrid(&#39;navGrid&#39;,&#39;#pager&#39;,{add:true,edit:true,del:true, width:&#39;500px&#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;&#160;&#160; &#160;&#160;&#160; &#160;recreateForm: true<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;);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;});<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;function liveFmatter(el, cellval, opts ) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;if (el==1) {return &#39;Y&#39;} else {return &#39;&#39;};<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;//]]&#62;<br />&#160;&#160; &#160;&#60;/script&#62;<br />&#60;/head&#62;<br />&#60;body&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;center&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;table id="list"&#62;&#60;tr&#62;&#60;td&#62;&#60;/td&#62;&#60;/tr&#62;&#60;/table&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;div id="pager"&#62;&#60;/div&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;/center&#62;<br />&#60;/body&#62;</p>
<p>&#60;/head&#62;<br />&#60;body&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;center&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;table id="list"&#62;&#60;tr&#62;&#60;td&#62;&#60;/td&#62;&#60;/tr&#62;&#60;/table&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;div id="pager"&#62;&#60;/div&#62;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#60;/center&#62;<br />&#60;/body&#62;</p>
<p>I am no longer sure if liveFmatter() should be in or not, but whether in or out, the datepicker doesn&#39;t appear.</p></p>
]]></description>
        	        	<pubDate>Sat, 25 Jun 2011 18:49:57 +0300</pubDate>
        </item>
</channel>
</rss>