<?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: help me please. Unable to edit rows :(</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/help-me-please-unable-to-edit-rows</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/help-me-please-unable-to-edit-rows/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>abdol on help me please. Unable to edit rows :(</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-me-please-unable-to-edit-rows#p26450</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-me-please-unable-to-edit-rows#p26450</guid>
        	        	<description><![CDATA[<p>I solved it. I should have add cellEdit: true</p>
<p>Thanks.</p>
]]></description>
        	        	<pubDate>Mon, 23 Apr 2012 05:10:21 +0300</pubDate>
        </item>
        <item>
        	<title>abdol on help me please. Unable to edit rows :(</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/help-me-please-unable-to-edit-rows#p26441</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/help-me-please-unable-to-edit-rows#p26441</guid>
        	        	<description><![CDATA[<p>Hi every one,</p>
<p>I am new to javascript. I tried the inline edit example but it seems wahtever i do, It&#39;s not working for me.</p>
<p>The table displays correctly and I can click on every single element. but I can&#39;t edit rows. I get the</p>
<p>following message in firebug:</p>
<p>"a.type is not a function"</p>
<p>Here is my file:</p>
</p>
<pre id="line1">&#60;!--Setting browser&#39;s tab title--&#62;

&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&#62;
&#60;!--Setting html page content--&#62;

&#60;html xmlns="<a class="attribute-value" target="_blank">http://www.w3.org/1999/xhtml</a>" xml:lang="<a class="attribute-value" target="_blank">en</a>" lang="<a class="attribute-value" target="_blank">en</a>"&#62;
    &#60;head&#62;
        &#60;meta http-equiv="<a class="attribute-value" target="_blank">Content-Type</a>" content="<a class="attribute-value" target="_blank">text/html;charset=utf-8</a>" /&#62;&#60;title&#62;Online Tracking&#60;/title&#62;&#60;link href="<a class="attribute-value" href="/blog/view-source:http:/dev2/css/site.css" target="_blank">/css/site.css</a>" media="<a class="attribute-value" target="_blank">screen</a>" rel="<a class="attribute-value" target="_blank">stylesheet</a>" type="<a class="attribute-value" target="_blank">text/css</a>" /&#62;
&#60;link href="<a class="attribute-value" href="/blog/view-source:http:/dev2/css/ui-lightness/jquery-ui-1.8.19.custom.css" target="_blank">/css/ui-lightness/jquery-ui-1.8.19.custom.css</a>" media="<a class="attribute-value" target="_blank">screen</a>" rel="<a class="attribute-value" target="_blank">stylesheet</a>" type="<a class="attribute-value" target="_blank">text/css</a>" /&#62;
&#60;link href="<a class="attribute-value" href="/blog/view-source:http:/dev2/css/ui.jqgrid.css" target="_blank">/css/ui.jqgrid.css</a>" media="<a class="attribute-value" target="_blank">screen</a>" rel="<a class="attribute-value" target="_blank">stylesheet</a>" type="<a class="attribute-value" target="_blank">text/css</a>" /&#62;&#60;!--        &#60;style&#62;
            html,body{
                margin: 0;
                padding: 0;
                font-size: 75%;
            }
        &#60;/style&#62;--&#62;
        
&#60;script type="<a class="attribute-value" target="_blank">text/javascript</a>" src="<a class="attribute-value" href="/blog/view-source:http:/ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" target="_blank">http://ajax.googleapis.com/aja.....ery.min.js</a>"&#62;&#60;/script&#62;

&#60;script type="<a class="attribute-value" target="_blank">text/javascript</a>" src="<a class="attribute-value" href="/blog/view-source:http:/dev2/js/i18n/grid.locale-en.js" target="_blank">/js/i18n/grid.locale-en.js</a>"&#62;&#60;/script&#62;
&#60;script type="<a class="attribute-value" target="_blank">text/javascript</a>" src="<a class="attribute-value" href="/blog/view-source:http:/dev2/js/jquery.jqGrid.min.js" target="_blank">/js/jquery.jqGrid.min.js</a>"&#62;&#60;/script&#62;      
    &#60;/head&#62;
 
    &#60;body&#62; 
&#60;!--        Zonload="showValues()"&#62;--&#62;
&#60;!--        &#60;div&#62;
            &#60;h1&#62;&#60;/h1&#62;
        &#60;/div&#62;--&#62;
        
        &#60;div&#62;
            &#60;script type="<a class="attribute-value" target="_blank">text/javascript</a>"&#62;
jQuery(document).ready(function(){ 
  var lastsel2
  jQuery("#rowed5").jqGrid({        
    datatype: "local",
    height: 250,
    colNames:[&#39;ID Number&#39;,&#39;Name&#39;, &#39;Stock&#39;, &#39;Ship via&#39;,&#39;Notes&#39;],
    colModel:[
      {name:&#39;id&#39;,index:&#39;id&#39;, width:90, sorttype:"int", editable: true},
      {name:&#39;name&#39;,index:&#39;name&#39;, width:150,editable: true, editoptions:{size:"20",maxlength:"30"}},
      {name:&#39;stock&#39;,index:&#39;stock&#39;, width:60, editable: true, edittype:"checkbox",editoptions: {value:"Yes:No"}},
      {name:&#39;ship&#39;,index:&#39;ship&#39;, width:90, editable: true, edittype:"select", editoptions:{value:"FE:FedEx;IN:InTime;TN:TNT;AR:ARAMEX"}},                       
      {name:&#39;note&#39;,index:&#39;note&#39;, width:200, sortable:false,editable: true,edittype:"textarea", editoptions:{rows:"2",cols:"10"}}                      
              ],
    onSelectRow: function(id){
      if(id &#38;&#38; id!==lastsel2){
        jQuery(&#39;#rowed5&#39;).restoreRow(lastsel2);
        jQuery(&#39;#rowed5&#39;).editRow(id,true);
          lastsel2=id;
      }
    },
    editurl: "server.php",
    caption: "Input Types"
  });
  var mydata2 = [
    {id:"12345",name:"Desktop Computer",note:"note",stock:"Yes",ship:"FedEx"},
    {id:"23456",name:"Laptop",note:"Long text ",stock:"Yes",ship:"InTime"},
    {id:"34567",name:"LCD Monitor",note:"note3",stock:"Yes",ship:"TNT"},
    {id:"45678",name:"Speakers",note:"note",stock:"No",ship:"ARAMEX"},
    {id:"56789",name:"Laser Printer",note:"note2",stock:"Yes",ship:"FedEx"},
    {id:"67890",name:"Play Station",note:"note3",stock:"No", ship:"FedEx"},
    {id:"76543",name:"Mobile Telephone",note:"note",stock:"Yes",ship:"ARAMEX"},
    {id:"87654",name:"Server",note:"note2",stock:"Yes",ship:"TNT"},
    {id:"98765",name:"Matrix Printer",note:"note3",stock:"No", ship:"FedEx"}
    ];
  for(var i=0;i&#60;mydata2.length;i++)
    jQuery("#rowed5").addRowData(mydata2[i].id,mydata2[i]);
});
&#60;/script&#62;

&#60;table id="<a class="attribute-value" target="_blank">rowed5</a>" class="<a class="attribute-value" target="_blank">scroll</a>"&#62;&#60;/table&#62;&#60;br /&#62;
&#60;b&#62;Notice&#60;/b&#62;:  Undefined variable: id in &#60;b&#62;/Users/abdol/Desktop/local.test/dev2/application/forms/SupervisorApproval.php&#60;/b&#62; on line &#60;b&#62;18&#60;/b&#62;&#60;br /&#62;
        &#60;/div&#62;
    &#60;/body&#62;
&#60;/html&#62;</pre></p>
]]></description>
        	        	<pubDate>Sun, 22 Apr 2012 10:10:09 +0300</pubDate>
        </item>
</channel>
</rss>