<?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: jqGrid is not a function</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-is-not-a-function-1</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/jqgrid-is-not-a-function-1/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>YamilBracho on jqGrid is not a function</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-is-not-a-function-1#p3037</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-is-not-a-function-1#p3037</guid>
        	        	<description><![CDATA[<p>Here the most important issue to setup jqGrid is the "pathtojsfiles" variable</p>
<p>in jquery.jqGrid.js.In my case I have a directory called "js" where I put all my javascript scripts, so I have :</p>
<p>var pathtojsfiles = "../js/js/packed/"; // need to be ajusted</p>
<p>Check with FireBug which files are been loaded...</p>
]]></description>
        	        	<pubDate>Wed, 12 Nov 2008 07:59:33 +0200</pubDate>
        </item>
        <item>
        	<title>xyz on jqGrid is not a function</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-is-not-a-function-1#p3031</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-is-not-a-function-1#p3031</guid>
        	        	<description><![CDATA[<p>I&#39;ve seen this error posted several times, all seemingly resolved by changing the paths in the jquery.jqGrid.js file.&#160; I&#39;ve tried that, and it does not seem to have an effect, but maybe I&#39;m missing something obvious.</p>
<p>My error is:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit8302' value='Select Code' data-codeid='sfcode8302' /></p>
<div class='sfcode' id='sfcode8302'>
<p>jQuery("#list4").jqGrid is not a function<br />(?)()()grid.aspx (line 31)<br />to the wait list jQuery.readyList.push()()jquery.js (line 2294)<br />(?)()()jquery.js (line 2314)<br />each()(function () { return fn.call(this, jQuery); }, function(), undefined)jquery.js (line 745)<br />ready()()</p>
</div>
<p>I&#39;m trying to do the load array data.&#160; My code is copied directly from the demo pages:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1405' value='Select Code' data-codeid='sfcode1405' /></p>
<div class='sfcode' id='sfcode1405'>
<p>&#60;script src="js/jquery.js" type="text/javascript"&#62;&#60;/script&#62; <br />&#60;script src="js/jquery.jqGrid.js" type="text/javascript"&#62;&#60;/script&#62; <br />&#60;script src="js/js/jqModal.js" type="text/javascript"&#62;&#60;/script&#62; <br />&#60;script src="js/js/jqDnR.js" type="text/javascript"&#62;&#60;/script&#62;</p>
<p>&#160;&#60;script type="text/javascript"&#62; <br />jQuery(document).ready(function(){ <br />&#160;&#160;&#160; jQuery("#list4").jqGrid({<br />&#160;datatype: "local",<br />&#160;height: 250,<br />&#160;&#160; &#160;colNames:[&#39;Inv No&#39;,&#39;Date&#39;, &#39;Client&#39;, &#39;Amount&#39;,&#39;Tax&#39;,&#39;Total&#39;,&#39;Notes&#39;],<br />&#160;&#160; &#160;colModel:[<br />&#160;&#160; &#160;&#160;{name:&#39;id&#39;,index:&#39;id&#39;, width:60, sorttype:"int"},<br />&#160;&#160; &#160;&#160;{name:&#39;invdate&#39;,index:&#39;invdate&#39;, width:90, sorttype:"date"},<br />&#160;&#160; &#160;&#160;{name:&#39;name&#39;,index:&#39;name&#39;, width:100},<br />&#160;&#160; &#160;&#160;{name:&#39;amount&#39;,index:&#39;amount&#39;, width:80, align:"right",sorttype:"float"},<br />&#160;&#160; &#160;&#160;{name:&#39;tax&#39;,index:&#39;tax&#39;, width:80, align:"right",sorttype:"float"},&#160;&#160;<br />&#160;&#160; &#160;&#160;{name:&#39;total&#39;,index:&#39;total&#39;, width:80,align:"right",sorttype:"float"},&#160;&#160;<br />&#160;&#160; &#160;&#160;{name:&#39;note&#39;,index:&#39;note&#39;, width:150, sortable:false}&#160;&#160;<br />&#160;&#160; &#160;],<br />&#160;&#160; &#160;imgpath: &#39;js/themes/basic/images&#39;,<br />&#160;&#160; &#160;multiselect: false,<br />&#160;&#160; &#160;caption: "Manipulating Array Data"<br />});<br />var mydata = [<br />&#160;&#160;{id:"1",invdate:"2007-10-01",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"}<br />&#160;&#160;];<br />for(var i=0;i&#60;=mydata.length;i++)<br />&#160;jQuery("#list4").addRowData(i+1,mydata[i]);<br />});<br />&#60;/script&#62;</p>
</div>
<p>Here are my includes:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6086' value='Select Code' data-codeid='sfcode6086' /></p>
<div class='sfcode' id='sfcode6086'>
<p>{ include: true, incfile:&#39;grid.locale-en.js&#39;,minfile: &#39;js/min/grid.locale-en-min.js&#39;}, // jqGrid translation<br />/*&#160;&#160;&#160;&#160;&#160;&#160;&#160; { include: true, incfile:&#39;grid.pack.js&#39;,minfile: &#39;&#39;},&#160; */ // jqGrid all packecd<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; { include: true, incfile:&#39;grid.base.js&#39;,minfile: &#39;js/min/grid.base-min.js&#39;}, // jqGrid base<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; { include: true, incfile:&#39;grid.common.js&#39;,minfile: &#39;js/min/grid.common-min.js&#39; }, // jqGrid common for editing<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; { include: true, incfile:&#39;grid.formedit.js&#39;,minfile: &#39;js/min/grid.formedit-min.js&#39; }, // jqGrid Form editing<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; { include: true, incfile:&#39;grid.inlinedit.js&#39;,minfile: &#39;js/min/grid.inlinedit-min.js&#39; }, // jqGrid inline editing<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; { include: true, incfile:&#39;grid.celledit.js&#39;,minfile: &#39;js/min/grid.celledit-min.js&#39; }, // jqGrid cell editing<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; { include: true, incfile:&#39;grid.subgrid.js&#39;,minfile: &#39;js/min/grid.subgrid-min.js&#39;}, //jqGrid subgrid<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; { include: true, incfile:&#39;grid.treegrid.js&#39;,minfile: &#39;js/min/grid.treegrid-min.js&#39;}, //jqGrid treegrid<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; { include: true, incfile:&#39;grid.custom.js&#39;,minfile: &#39;js/min/grid.custom-min.js&#39;}, //jqGrid custom <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; { include: true, incfile:&#39;grid.postext.js&#39;,minfile: &#39;js/min/grid.postext-min.js&#39;}, //jqGrid postext<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; { include: true, incfile:&#39;grid.tbltogrid.js&#39;,minfile: &#39;js/min/grid.tbltogrid-min.js&#39;}, //jqGrid table to grid <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; { include: true, incfile:&#39;grid.setcolumns.js&#39;,minfile: &#39;js/min/grid.setcolumns-min.js&#39;} //jqGrid setcolumns</p>
</div>
<p>And here is my path structure:</p>
<ul>
<li>root
<ul>
<li>grid.aspx (the page the code is running from)</li>
<li>js
<ul>
<li>jquery.js (version 1.2.6)</li>
<li>jquery.jqGrid.js</li>
<li>js
<ul>
<li>min
<ul>
<li>grid.base-min.js</li>
<li>other grid.xxx-min.js files</li>
</ul>
</li>
<li>packall</li>
<li>packed</li>
<li>....</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>Thank you for your help.&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</p>
]]></description>
        	        	<pubDate>Tue, 11 Nov 2008 17:59:55 +0200</pubDate>
        </item>
</channel>
</rss>