<?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: onInitializeForm not firing</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/oninitializeform-not-firing</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/oninitializeform-not-firing/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>digitalspaghetti on onInitializeForm not firing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/oninitializeform-not-firing#p2707</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/oninitializeform-not-firing#p2707</guid>
        	        	<description><![CDATA[<p>Hey,</p>
</p>
<p>Just to say I got this working now, thanks</p>
]]></description>
        	        	<pubDate>Sun, 26 Oct 2008 12:33:12 +0200</pubDate>
        </item>
        <item>
        	<title>digitalspaghetti on onInitializeForm not firing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/oninitializeform-not-firing#p2698</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/oninitializeform-not-firing#p2698</guid>
        	        	<description><![CDATA[<p>Hi again,</p>
<p>I&#39;m trying to add a date time field to my columns, and I want to use a different date/time picker than UI, but to test it I&#39;ve tried to call the function and output the formID to the console, however it doesn&#39;t seem to work.&#160; I&#39;ve checked the forum and saw a similar post, but I just can&#39;t see why it won&#39;t even fire the event to the console.&#160; Here is my code:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9241' value='Select Code' data-codeid='sfcode9241' /></p>
<div class='sfcode' id='sfcode9241'>jQuery("#campaigns-list").jqGrid(<br />&#160;&#160;&#160; &#160;&#160;&#160; {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;url&#39;: options.baseURL + &#39;list/&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;datatype&#39;: "json",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;colNames&#39;: [&#39;Campaign Name&#39;, &#39;Campaign Type&#39;, &#39;Campaign End Date&#39;, &#39;Notes&#39;],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;colModel&#39;: [{<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;name&#39;: &#39;campaign_title&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;index&#39;: &#39;campaign_title&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;width&#39;: 75,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;editable&#39;:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;editoptions&#39;:{size:25}<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }, {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;name&#39;: &#39;campaign_type&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;index&#39;: &#39;campaign_type&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;width&#39;: 75,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;editable&#39;:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;edittype&#39;:&#39;select&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;editoptions&#39;:{&#39;size&#39;:25, &#39;value&#39;:&#39;0:Telephone&#39;}<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }, {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;name&#39;: &#39;campaign_end_date&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;index&#39;: &#39;campaign_end_date&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;width&#39;: 75,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;editable&#39;:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;sorttype&#39;:&#39;date&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;datefmt&#39;:&#39;d m Y H i s&#39;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }, {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;name&#39;: &#39;body&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;index&#39;: &#39;body&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;width&#39;: 75,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;editable&#39;:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;edittype&#39;:&#39;textarea&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;editoptions&#39;:{rows:"2",cols:"20"}<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;width&#39;:730,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;height&#39;:300,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;rowNum&#39;: 10,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;rowList&#39;: [10, 20, 50, 100],<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;imgpath&#39;: &#39;/sites/all/modules/manager/css/jqmodal/green/images&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;pager&#39;: jQuery(&#39;#campaigns-pager&#39;),<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;sortname&#39;: &#39;campaign_title&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;viewrecords&#39;: true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;sortorder&#39;: "asc",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;caption&#39;: "Your Campaigns",<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;editurl&#39;:options.baseURL + &#39;update/&#39;,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;afterInsertRow&#39;: function(rowid, rowdata, rowelem) {<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; if (rowelem.cell[1] == &#39;0&#39;) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery("#campaigns-list").setCell(rowid, &#39;campaign_type&#39;, &#39;Telephone&#39;);<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; <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; },<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;ondblClickRow&#39;: function( rowid ) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; Qcall.Manager.Campaigns.Load({<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;node_id&#39;: rowid<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; }<br />&#160;&#160;&#160; &#160;&#160;&#160; });<br />&#160;&#160;&#160; &#160;&#160;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; jQuery("#campaigns-list").navGrid(&#39;#campaigns-pager&#39;,{<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;edit&#39;:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;add&#39;:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;del&#39;:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;search&#39;:true,<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#39;onInitializeForm&#39;: function ( formid ) {<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; console.log(formid);<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; jQuery("#campaign_end_date",formid).datepicker({showOn: &#39;focus&#39;});<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }<br />});</div>
]]></description>
        	        	<pubDate>Sat, 25 Oct 2008 12:57:37 +0300</pubDate>
        </item>
</channel>
</rss>