<?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: jqGrid not removing combo box with custom formatter after saverow</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-not-removing-combo-box-with-custom-formatter-after-saverow</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/jqgrid-not-removing-combo-box-with-custom-formatter-after-saverow/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>julianonunes on jqGrid not removing combo box with custom formatter after saverow</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-not-removing-combo-box-with-custom-formatter-after-saverow#p30430</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-not-removing-combo-box-with-custom-formatter-after-saverow#p30430</guid>
        	        	<description><![CDATA[<p>Any help on that please?</p>
]]></description>
        	        	<pubDate>Tue, 01 Apr 2014 15:50:23 +0300</pubDate>
        </item>
        <item>
        	<title>julianonunes on jqGrid not removing combo box with custom formatter after saverow</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-not-removing-combo-box-with-custom-formatter-after-saverow#p30347</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-not-removing-combo-box-with-custom-formatter-after-saverow#p30347</guid>
        	        	<description><![CDATA[<p>I have a grid using inline edit that allows adding multiple blank rows, but this is causing some problems.</p>
<p>If I add two or more rows and leave some of them with errors, the other rows (saverow succeeded) turn all columns to read-only, with the exception of a select column (edittype: select) with custom formatter to return the combo box text instead of value.</p>
<p>Here is a sample of my code:</p>
<pre class="default prettyprint prettyprinted"><p><input type='button' class='sfcodeselect' name='sfselectit2603' value='Select Code' data-codeid='sfcode2603' /></p><div class='sfcode' id='sfcode2603'>&#60;script type="text/javascript"&#62;
jQuery(document).ready(function () {
jQuery(&#39;#grid&#39;).jqGrid({
autowidth:true,
datatype:&#39;local&#39;,
height:&#39;100%&#39;,
pager:&#39;#pager&#39;,
rowNum:10,
sortname:&#39;User&#39;,
viewrecords:true,
gridComplete: function() {OnGridComplete()},
onSelectRow: function(rowid, status) {OnSelectRow(rowid, status)},
colModel: [
{
name:&#39;AlternativeIndex&#39;,
hidden:true,
key:true,
index:&#39;AlternativeIndex&#39;
},{
name:&#39;UserId&#39;,
formatter: formatUserAsDropDown,
label:&#39;User&#39;,
sortable:true,
width:300,
editable:true,
edittype:&#39;select&#39;,
editoptions:{"value":""},
index:&#39;UserId&#39;
},{
name:&#39;Permission&#39;,
formatter:&#39;select&#39;,
hidden:false,
label:&#39;Permission&#39;,
sortable:true,
width:170,
editable:true,
edittype:&#39;select&#39;,
editoptions:{"value":"R:Read;W:Write"},
index:&#39;Permission&#39;
}
]
});
});
&#60;/script&#62;</div></pre>
<p>And here is the code for the custom formatter:</p>
<pre class="default prettyprint prettyprinted"><p><input type='button' class='sfcodeselect' name='sfselectit7127' value='Select Code' data-codeid='sfcode7127' /></p><div class='sfcode' id='sfcode7127'>function formatUserAsDropDown(cellvalue, options, rowObject) {
    return rowObject.Username;
}</div></pre>
<p>This problem does not occur with Permission column.</p>
</p>
<p>PS: I cannot reload the grid after saverow as there maybe have some rows with errors and I have to keep them editable until the user fix these errors and click on Save button again.</p>
]]></description>
        	        	<pubDate>Tue, 11 Mar 2014 14:46:09 +0200</pubDate>
        </item>
</channel>
</rss>