<?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: beforeSaveCell is not using returned value</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/beforesavecell-is-not-using-returned-value</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/beforesavecell-is-not-using-returned-value/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on beforeSaveCell is not using returned value</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/beforesavecell-is-not-using-returned-value#p20165</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/beforesavecell-is-not-using-returned-value#p20165</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks.</p>
<p>There is a bug. Fixed in GitHub.</p>
<p>Best Regards</p>
<p>Tony</p></p>
]]></description>
        	        	<pubDate>Wed, 06 Oct 2010 08:06:49 +0300</pubDate>
        </item>
        <item>
        	<title>jhonnycano on beforeSaveCell is not using returned value</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/beforesavecell-is-not-using-returned-value#p20155</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/beforesavecell-is-not-using-returned-value#p20155</guid>
        	        	<description><![CDATA[<p>Hello. I&#39;m trying to affect the edited data to multiply it, so if user writes 10, at the grid should have been saved 10000.</p>
</p>
<p>From documentation:</p>
<blockquote>
<p>applies only to a cell that is editable; this event fires before   validation of values if any. This event can return the new value which   value can replace the edited one <br /> beforeSaveCell : function(rowid,celname,value,iRow,iCol) { <br /> if( some_condition )<br /> { return "new value"; } <br /> } <br /> The value will be replaced with "new value"</p>
</blockquote>
<p>What am I missing? here is my code. Thanks in advance. I&#39;m using 3.7.2</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1942' value='Select Code' data-codeid='sfcode1942' /></p>
<div class='sfcode' id='sfcode1942'>var myGrid = $(&#34;#myHtmlTag&#34;).jqGrid({<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;data: arrOfData,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;datatype: &#39;local&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colNames: [&#39;Inicio&#39;, &#39;Fin&#39;, &#39;Contrato&#39;, &#39;Valor&#39;],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;colModel: [<br />&#160;&#160;&#160;&#160;&#160; { name: &#39;fch_inicio&#39;, index: &#39;fch_inicio&#39;, width: 155, sortable: false, sorttype: &#39;date&#39;, datefmt: &#39;Y-m-d&#39; },<br />&#160;&#160;&#160;&#160;&#160; { name: &#39;fch_fin&#39;, index: &#39;fch_fin&#39;, width: 155, sortable: false, sorttype: &#39;date&#39;, datefmt: &#39;Y-m-d&#39; },<br />&#160;&#160;&#160;&#160;&#160; { name: &#39;contrato&#39;, index: &#39;contrato&#39;, width: 90, sortable: false },<br />&#160;&#160;&#160;&#160;&#160; { name: &#39;vr_proyectado&#39;, index: &#39;vr_proyectado&#39;, width: 80, align: &#39;right&#39;, sorttype: &#39;float&#39;, sortable: false, editable: true, edittype: &#39;text&#39; },<br />&#160;&#160;&#160; ],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;cellEdit: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;cellsubmit: &#39;clientArray&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;beforeSaveCell: function (rowid, cellname, value, iRow, iCol) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;var multiplica = 1000;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;return value * multiplica;</p>
<p>&#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;pager: &#39;#pager&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowNum: 20,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;rowList: [10, 20, 30],<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortname: &#39;contrato&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;sortorder: &#39;desc&#39;,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;viewrecords: true,<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;caption: &#39;Caption&#39;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;});</p>
</div>
]]></description>
        	        	<pubDate>Tue, 05 Oct 2010 22:19:45 +0300</pubDate>
        </item>
</channel>
</rss>