<?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: e.p.savedRow&#091;0&#093; is undefined</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/e-p-savedrow0-is-undefined</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/e-p-savedrow0-is-undefined/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>James G on e.p.savedRow&#091;0&#093; is undefined</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/e-p-savedrow0-is-undefined#p28735</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/e-p-savedrow0-is-undefined#p28735</guid>
        	        	<description><![CDATA[<p>Hi there.</p>
<p>I&#39;m currently building a website for a colleague and have resorted to using JQGRID to allow database editing from a manager&#39;s page. The problem I&#39;m encountering is when I go to save a new row (using inline code), I get an error "e.p.savedRow[0] is undefined" (as seen in Firebug).</p>
<p>I do not encounter this error when editing an existing record, or deleting a record, only when I&#39;m adding a new record. This has me stumped as I&#39;m not sure where I have gone wrong. The code is shown below:</p>
</p>
<pre class="default prettyprint prettyprinted"><p><input type='button' class='sfcodeselect' name='sfselectit2456' value='Select Code' data-codeid='sfcode2456' /></p><div class='sfcode' id='sfcode2456'>&#60;div style=&#39;overflow: auto;&#39;&#62;
                &#60;table id=&#39;list3&#39;&#62;&#60;/table&#62;
                &#60;div id=&#39;pager3&#39;&#62;&#60;/div&#62;
        &#60;/div&#62;


        &#60;script&#62;

                jQuery(&#39;#list3&#39;).jqGrid({
                        url:&#39;/accent/index.php?id=39&#39;,
                        datatype: &#39;json&#39;,
                        colNames:[&#39;ID&#39;,&#39;Brand&#39;, &#39;Item Code&#39;, &#39;S. Desc&#39;,&#39;L. Desc&#39;,&#39;Range&#39;,
                                &#39;Colour/Finish&#39;,&#39;Category&#39;,&#39;Fitment&#39;,&#39;No of Bulbs&#39;,&#39;Type of Lamp&#39;,&#39;Light Socket&#39;,&#39;Max W&#39;,
                                &#39;Max LE Lamp&#39;,&#39;IP&#39;,&#39;Width&#39;,&#39;Length&#39;,&#39;Height&#39;,&#39;Min Drop&#39;,&#39;Max Drop&#39;,
                                &#39;Projection&#39;,&#39;Weight&#39;,&#39;Shade Code&#39;,&#39;RRP&#39;,&#39;Price&#39;,&#39;Clearance&#39;,&#39;Featured&#39;
                                ],
                        colModel:[
                                {name:&#39;id&#39;,index:&#39;id&#39;, width:40,align:&#39;center&#39;,editable:true},
                                {name:&#39;brand&#39;,index:&#39;brand&#39;, width:70,align:&#39;center&#39;,editable:true},
                                {name:&#39;itemCode&#39;,index:&#39;itemCode&#39;, width:75,align:&#39;center&#39;,editable:true},
                                {name:&#39;shortDesc&#39;,index:&#39;shortDesc&#39;, width:100,editable:true},
                                {name:&#39;longDesc&#39;,index:&#39;longDesc&#39;, width:200,editable:true},
                                {name:&#39;range&#39;,index:&#39;range&#39;, width:100,align:&#39;center&#39;,editable:true},
                                {name:&#39;colourFinish1&#39;,index:&#39;colourFinish1&#39;,width:100,align:&#39;center&#39;,editable:true},
                                {name:&#39;groupOfLights&#39;,index:&#39;groupOfLights&#39;,width:100,align:&#39;center&#39;,editable:true},
                                {name:&#39;typeOfFitting&#39;,index:&#39;typeOfFitting&#39;,width:100,align:&#39;center&#39;,editable:true},
                                {name:&#39;noOfLamp1&#39;,index:&#39;noOfLamp1&#39;,width:80,align:&#39;center&#39;,editable:true},
                                {name:&#39;typeOfLamp1&#39;,index:&#39;typeOfLamp1&#39;,width:80,align:&#39;center&#39;,editable:true},
                                {name:&#39;lightSocketLamp1&#39;,index:&#39;lightSocketLamp1&#39;,width:50,align:&#39;center&#39;,editable:true},
                                {name:&#39;maxWattageLamp1&#39;,index:&#39;maxWattagelamp1&#39;,width:50,align:&#39;center&#39;,editable:true},
                                {name:&#39;maxLowEnergyLamp&#39;,index:&#39;maxLowEnergyLamp&#39;,width:50,align:&#39;center&#39;,editable:true},
                                {name:&#39;ipRating&#39;,index:&#39;ipRating&#39;,width:50,align:&#39;center&#39;,editable:true},
                                {name:&#39;width&#39;,index:&#39;width&#39;,width:50,align:&#39;right&#39;,editable:true},
                                {name:&#39;length&#39;,index:&#39;length&#39;,width:50,align:&#39;right&#39;,editable:true},
                                {name:&#39;height&#39;,index:&#39;height&#39;,width:50,align:&#39;right&#39;,editable:true},
                                {name:&#39;minimumDrop&#39;,index:&#39;minimumDrop&#39;,width:60,align:&#39;right&#39;,editable:true},
                                {name:&#39;maximumDrop&#39;,index:&#39;maximumDrop&#39;,width:60,align:&#39;right&#39;,editable:true},
                                {name:&#39;projection&#39;,index:&#39;projection&#39;,width:100,align:&#39;right&#39;,editable:true},
                                {name:&#39;weight&#39;,index:&#39;weight&#39;,width:50,align:&#39;right&#39;,editable:true},
                                {name:&#39;shadeCode1&#39;,index:&#39;shadeCode1&#39;,width:50,align:&#39;right&#39;,editable:true},
                                {name:&#39;rrp&#39;,index:&#39;rrp&#39;,width:50,align:&#39;right&#39;,editable:true},
                                {name:&#39;price&#39;,index:&#39;price&#39;,width:50,align:&#39;right&#39;,editable:true},
                                {name:&#39;clearance&#39;,index:&#39;clearance&#39;,width:50,align:&#39;center&#39;,editable:true},
                                {name:&#39;featured&#39;,index:&#39;featured&#39;,width:50,align:&#39;center&#39;,editable:true}
                        ],
                        rowNum:25,
                        rowList:[25,50,100],
                        pager: &#39;#pager3&#39;,
                        sortname: &#39;id&#39;,
                        viewrecords: true,
                        sortorder: &#39;desc&#39;,
                        caption:&#39;Edit Products&#39;,
                        height: &#39;500px&#39;,
                        editurl:&#39;/accent/core/components/productsdatabase/editJSON.php?&#38;u=admin
                });

                jQuery(&#39;#list3&#39;).jqGrid(&#39;navGrid&#39;,&#39;#pager3&#39;,{edit:false,add:false,del:true});
                jQuery(&#39;#list3&#39;).jqGrid(&#39;inlineNav&#39;,&#39;#pager3&#39;,{edit:true,add:true,del:false});
        &#60;/script&#62;</div></pre>
]]></description>
        	        	<pubDate>Mon, 06 May 2013 19:53:08 +0300</pubDate>
        </item>
</channel>
</rss>