<?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: editformbutton &#38; local data in jqGrid 4.4.0</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/editformbutton-local-data-in-jqgrid-4-4-0</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/editformbutton-local-data-in-jqgrid-4-4-0/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>cguest on editformbutton &#38; local data in jqGrid 4.4.0</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/editformbutton-local-data-in-jqgrid-4-4-0#p27169</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/editformbutton-local-data-in-jqgrid-4-4-0#p27169</guid>
        	        	<description><![CDATA[<p>Below is my attempt at a jqGrid 4.4.0 form with local data and&#160; Edit &#38; Delete buttons on each row.</p>
<p>I am using the editformbutton option in the formatnoptions.</p>
<p>I am importing the following modules:<br />&#160;&#160; &#160;<br />&#160;&#160;&#160; jquery.js<br />&#160;&#160;&#160; jquery-ui-1.8/jquery-ui-1.8.9.custom.min.js<br />&#160;&#160;&#160; jquery-ui-1.8/jquery-ui-timepicker-addon.0.9.3.js<br />&#160;&#160;&#160; jquery-validate/jquery.validate.min.js<br />&#160;&#160;&#160; date.format.1.2.3.js<br />&#160;&#160;&#160; jquery.jqGrid-4.4.0/css/ui.jqgrid.css<br />&#160;&#160;&#160; jquery.jqGrid-4.4.0/js/i18n/grid.locale-en.js<br />&#160;&#160;&#160; jquery.jqGrid-4.4.0/js/jquery.jqGrid.src.js<br />&#160;&#160;&#160; jquery.jqGrid-4.4.0/src/jqModal.js<br />&#160;&#160;&#160; jquery.jqGrid-4.4.0/src/jqDnR.js<br />&#160;&#160;&#160; json2.js</p>
<p>I am currently getting a JavaScript error like this when I hit the &#39;Submit&#39; button on the Edit form.</p>
<p>&#160;&#160;&#160; Error: TypeError: $.type is not a function<br />&#160;&#160;&#160; Source File: <a href="http://localhost/jquery.jqGrid-4.4.0/js/jquery.jqGrid.src.js" rel="nofollow" target="_blank"><a href="http://localhost/jquery.jqGrid" rel="nofollow">http://localhost/jquery.jqGrid</a>.....rid.src.js</a><br />&#160;&#160;&#160; Line: 52</p>
<p>I&#39;m still unclear as to what is minimally required for the local data to be updated when I hit the &#39;submit&#39; button in the form.</p>
<p>&#160;&#160;&#160; var mytabledata = [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {id:1, qty:3, item:&#39;xyz&#39;, price:10.0},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {id:2, qty:2,item:&#39;abc&#39;, price:12.0} <br />&#160;&#160;&#160; ];</p>
<p>&#160;&#160;&#160; $("#mytable").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;local&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; data: mytabledata,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; editRow: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; editurl: &#39;clientarray&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; fixed:true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames:[&#39;&#39;, &#39;&#39;, &#39;&#39;, &#39;&#39;, &#39;&#39;, &#39;&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel:[<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;id&#39;,index:&#39;id&#39;, width:20, sortable:false, align:&#39;right&#39;, hidden:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;actedit&#39;,index:&#39;actedit&#39;,width:20,align:&#39;left&#39;,sortable:false,formatter:&#39;actions&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; formatoptions:{<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; editformbutton: true,<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; delbutton : false, <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; keys: false <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; },</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;qty&#39;,index:&#39;qty&#39;, width:20, sortable:false, editable:true, edittype:&#39;select&#39;, editoptions:{value:"1:1;2:2;3:3"} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;item&#39;,index:&#39;item&#39;, width:50, sortable:false, editable:true},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;price&#39;,index:&#39;price&#39;, width:20, sortable:false, align:&#39;right&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {name:&#39;actdel&#39;,index:&#39;actdel&#39;,width:20,align:&#39;left&#39;,sortable:false,formatter:&#39;actions&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; formatoptions:{<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; editbutton : false,<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; delbutton : true, <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; keys: false <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; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; width:280,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;id&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortorder: "desc",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: &#39;auto&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ).navGrid(<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; "#sc-pager",{edit:false,add:false,del:false}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; );</p>
]]></description>
        	        	<pubDate>Tue, 21 Aug 2012 02:46:53 +0300</pubDate>
        </item>
</channel>
</rss>