<?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: Problem with in place editing</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/problem-with-in-place-editing</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/bugs/problem-with-in-place-editing/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Problem with in place editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/problem-with-in-place-editing#p20875</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/problem-with-in-place-editing#p20875</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Please, be a sure that you have marked all the needed modules for editing when you download the grid.</p>
<p><a href="http://www.trirand.com/blog/?page_id=6" rel="nofollow" target="_blank">http://www.trirand.com/blog/?page_id=6</a></p>
</p>
<p>Best Regards</p>
<p>Tony</p></p>
]]></description>
        	        	<pubDate>Wed, 17 Nov 2010 19:09:54 +0200</pubDate>
        </item>
        <item>
        	<title>amrutad0 on Problem with in place editing</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/problem-with-in-place-editing#p20769</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/problem-with-in-place-editing#p20769</guid>
        	        	<description><![CDATA[<p>I am trying to do in place editing using jquery.jqGrid-3.8.1.</p>
<div class="code"><strong>Code:</strong></p>
<div class="innercode">&#60;script type="text/javascript"&#62;<br />jQuery(document).ready(function(){ <br />&#160; &#160;&#160;var lastsel2;<br />&#160; jQuery("#list").jqGrid({<br />&#160; &#160; url:&#39;Grid&#39;,<br />&#160; &#160; datatype: &#39;xml&#39;,<br />&#160; &#160; mtype: &#39;GET&#39;,<br />&#160; &#160; colNames:[&#39;APP_ID&#39;,&#39;CODE&#39;, &#39;VALUE&#39;],<br />&#160; &#160; colModel :[ <br />&#160; &#160; &#160; {name:&#39;APP_ID&#39;, index:&#39;APP_ID&#39;, width:100, editable:true, edittype:"text", editoptions:{size:10, maxlength: 15}}, <br />&#160; &#160; &#160; {name:&#39;CODE&#39;, index:&#39;CODE&#39;, width:100, editable:true, edittype:"text", editoptions:{size:10, maxlength: 15}}, <br />&#160;  &#160; &#160; {name:&#39;VALUE&#39;, index:&#39;VALUE&#39;, width:500, align:&#39;right&#39;,  editable:true, edittype:"text", editoptions:{size:10, maxlength: 15}}],<br />&#160; &#160; &#160; &#160; &#160; &#160; <br />&#160; &#160; pager: jQuery(&#39;#pager&#39;),<br />&#160; &#160;&#160;rowNum:10,<br />&#160; &#160; rowList:[10,20,30],<br />&#160; &#160; sortname: &#39;id&#39;,<br />&#160; &#160; sortorder: "desc",<br />&#160; &#160; viewrecords: true,<br />&#160; &#160; imgpath: &#39;themes/basic/images&#39;,<br />&#160; &#160; <br />&#160; &#160; gridComplete: function(){<br />&#160; &#160;&#160;&#160; &#160;&#160;var ids = jQuery("#list").getDataIDs();<br />&#160; &#160;&#160;&#160; &#160;&#160;for(var i=0;i &#60; ids.length;i++){<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;var cl = ids[i];<br />&#160;  &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;se = "&#60;input type=&#39;button&#39; value=&#39;Save&#39;  onclick="jQuery(&#39;#list&#39;).saveRow(&#39;"+cl+"&#39;,checksave);"&#160; /&#62;";&#160; &#160;&#160;&#160;  &#160;&#160;//checksave is a callback function to show the response of inline save  controller function<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;ce = "&#60;input type=&#39;button&#39; value=&#39;C&#39; title=&#39;Cancel&#39; onclick="jQuery(&#39;#list&#39;).restoreRow(&#39;"+cl+"&#39;);" /&#62;";<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;jQuery("#list").setRowData(ids[i],{act:se+ce});&#160; &#160;&#160;//Save and Cancel buttons inserted via jqGrid setRowData function<br />&#160; &#160;&#160;&#160; &#160;&#160;}<br />&#160; &#160;&#160;},<br />&#160; &#160;&#160;onSelectRow: function(id){<br />&#160; &#160;&#160;&#160; &#160;&#160;if(id &#38;&#38; id!==lastsel2){<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;jQuery(&#39;#list&#39;).restoreRow(lastsel2);&#160; &#160;&#160;//restore last grid row<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;jQuery(&#39;#list&#39;).editRow(id,true);&#160; &#160;&#160;&#160; &#160;&#160;//show form elements for the row selected to enable updates<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;lastsel2=id;&#160; &#160;&#160;//save current row ID so that when focus is gone it can be restored<br />&#160; &#160;&#160;&#160; &#160;&#160;}<br />&#160; &#160;&#160;},<br />&#160; &#160; caption: &#39;My first grid&#39;<br />&#160; }); <br />}); </p>
<p>function checksave(result)<br />{<br />&#160; &#160;&#160;if(result.responseText!=&#39;&#39;) alert(result.responseText);<br />&#160; &#160;&#160;else $("#list1").trigger("reloadGrid");<br />}<br />&#60;/script&#62;</p>
</div>
<div class="innercode"></div>
<p>Whenever I try to run following code in firefox 3.6, I get following error in firebug console</p>
<p><strong>createEl is not defined.</strong> Is there any different plugin for in place editing? Also Can any one  suggest me how to add edited data into database after editing it?</p>
</div>
]]></description>
        	        	<pubDate>Fri, 12 Nov 2010 08:21:13 +0200</pubDate>
        </item>
</channel>
</rss>