<?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 cell that was edited got blank when using the datainit.</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-cell-that-was-edited-got-blank-when-using-the-datainit</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-cell-that-was-edited-got-blank-when-using-the-datainit/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>chaikao on jqgrid cell that was edited got blank when using the datainit.</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-cell-that-was-edited-got-blank-when-using-the-datainit#p29641</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-cell-that-was-edited-got-blank-when-using-the-datainit#p29641</guid>
        	        	<description><![CDATA[<p>I have an issue with the jqgrid.</p>
<p>I use the datainit to handle the grid.</p>
<p>But there is some issue,</p>
<p>I click on one of the cell to change the value and I also manually change the other cellvalue by</p>
<p>&#160;$(&#39;#customFieldsGrid&#39;).jqGrid(&#39;setCell&#39;, rowId, &#39;DefaultValue&#39;, data.DefaultValue());</p>
<p>I also update my view model.</p>
<p>I load the grid my using&#160;</p>
<p>var grid = $(&#39;#customFieldsGrid&#39;);</p>
<p>var rows = [];</p>
<p>model.CustomObjectItemsData().forEach(function (item) {</p>
<p><span style="white-space: pre;"> </span>&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; var cell = [];</p>
<p><span style="white-space: pre;"> </span>cell.push(....);</p>
<p><span style="white-space: pre;"> </span>rows.push({ id: item.ID(), cell: cell });</p>
<p>});</p>
<p>grid[0].addJSONData({</p>
<p><span style="white-space: pre;"> </span>page: model.PageNumber(),</p>
<p><span style="white-space: pre;"> </span>records: model.TotalRows(),</p>
<p><span style="white-space: pre;"> </span>total: model.TotalPages(),</p>
<p><span style="white-space: pre;"> </span>rows: rows</p>
<p>)};</p>
<p>and data showup in the grid perfectly.</p>
<p>But when I start clicking some other cell, within the same column.</p>
<p>The data of the previous cell that I edit will be blanked out from the grid.</p></p>
]]></description>
        	        	<pubDate>Tue, 08 Oct 2013 23:03:46 +0300</pubDate>
        </item>
</channel>
</rss>