<?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: How can I drop a column out of the inline edit</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-drop-a-column-out-of-the-inline-edit</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/how-can-i-drop-a-column-out-of-the-inline-edit/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>donsom0702 on How can I drop a column out of the inline edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-drop-a-column-out-of-the-inline-edit#p19636</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-can-i-drop-a-column-out-of-the-inline-edit#p19636</guid>
        	        	<description><![CDATA[<p>Actually I figured out a way to do this by leaving the field as editable in the COLMODEL and in the onSelectRow I set a global variable (edit_id)&#160; and then when I call the editrow method I pass the function oneditfunc which according to the doc is "oneditfunc: fires after successfully accessing the row for editing,  prior to allowing user access to the input fields. The row&#39;s id is  passed as a parameter to this function."</p>
</p>
<p>In that function I derived the ID&#39;s of the column that has the code I do not want them to edit and set the disabled attribute.&#160; I also set the focus to the next editable field.&#160;&#160; This way it is still available in the Add form but is disabled for inline updates. Below is some sample code.&#160;&#160;</p>
</p>
<p>&#160;onSelectRow: function(id){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if(id &#38;&#38; id !== lastSel){<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (lastSel != "")<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#grid&#39;).restoreRow(lastSel);&#160; &#160;<br />&#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; lastSel=id; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; edit_id = id; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#grid&#39;).editRow(id, true, oneditfunc);<br />&#160;&#160; },</p>
</p>
<p>function oneditfunc() { &#160;<br />&#160; var col_id1 = &#39;#&#39; + edit_id + &#39;_COMM_CODE&#39;;<br />&#160; var col_id2 = &#39;#&#39; + edit_id + &#39;_COMM_NAME&#39;;<br />&#160;//&#160; alert(col_id1);<br />&#160;&#160; $(col_id2).focus();<br />&#160;&#160; $(col_id1).attr("disabled","disabled"); <br />}&#160; &#160;</p>
]]></description>
        	        	<pubDate>Thu, 09 Sep 2010 22:16:07 +0300</pubDate>
        </item>
        <item>
        	<title>donsom0702 on How can I drop a column out of the inline edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-drop-a-column-out-of-the-inline-edit#p19469</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-can-i-drop-a-column-out-of-the-inline-edit#p19469</guid>
        	        	<description><![CDATA[<p>If I do that then it does not show up in the Add form when they go to do the add.&#160;&#160; Is there a way to enable it dynamically on the add form?</p>
]]></description>
        	        	<pubDate>Wed, 01 Sep 2010 21:12:13 +0300</pubDate>
        </item>
        <item>
        	<title>steve.longdo on How can I drop a column out of the inline edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-drop-a-column-out-of-the-inline-edit#p19466</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-can-i-drop-a-column-out-of-the-inline-edit#p19466</guid>
        	        	<description><![CDATA[<p>Just add editable:false to the colmmodel for the field you don&#39;t want to be editable.</p>
]]></description>
        	        	<pubDate>Wed, 01 Sep 2010 19:40:23 +0300</pubDate>
        </item>
        <item>
        	<title>donsom0702 on How can I drop a column out of the inline edit</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/how-can-i-drop-a-column-out-of-the-inline-edit#p19465</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/how-can-i-drop-a-column-out-of-the-inline-edit#p19465</guid>
        	        	<description><![CDATA[<p>Newbie question,</p>
<p>I have a situation where they want to be able to add via the standard navgrid form with the key field in the first column and then edit via the inline editing using the select row option.&#160;&#160; I do not want to allow the key field in column 1 to be editable in for the inliine editing (changing the key).&#160;&#160; Does anyone have any ways to accomplish this?&#160;&#160;&#160;</p>
<p>TIA for any help.&#160;</p>
]]></description>
        	        	<pubDate>Wed, 01 Sep 2010 19:16:04 +0300</pubDate>
        </item>
</channel>
</rss>