<?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: Losing edited cell data after paging</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/losing-edited-cell-data-after-paging</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/losing-edited-cell-data-after-paging/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>jqwha on Losing edited cell data after paging</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/losing-edited-cell-data-after-paging#p18567</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/losing-edited-cell-data-after-paging#p18567</guid>
        	        	<description><![CDATA[<p>Works great! Thank you SO much!</p>
<p>Bill</p>
]]></description>
        	        	<pubDate>Tue, 13 Jul 2010 14:20:31 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Losing edited cell data after paging</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/losing-edited-cell-data-after-paging#p18566</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/losing-edited-cell-data-after-paging#p18566</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Ok. There is problem callin the data this way:</p>
<p>here is the working example</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1220' value='Select Code' data-codeid='sfcode1220' /></p>
<div class='sfcode' id='sfcode1220'>
<p>&#160;&#160;&#160; &#60;script type="text/javascript"&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var myGrid;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var lastgridsel;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(document).ready(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; myGrid = jQuery("#mygrid").jqGrid({<br />&#160;&#160;&#160;&#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;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;AID&#39;, label: &#39;AID&#39;, index: &#39;AID&#39;, width: 100, editable: false, sorttype: "int" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;MS&#39;, label: &#39;MS&#39;, index: &#39;MS&#39;, width: 300, editable: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;GROUP&#39;, label: &#39;GROUP&#39;, index: &#39;GROUP&#39;, width: 100, editable: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;REV&#39;, label: &#39;REV&#39;, index: &#39;REV&#39;, width: 100, editable: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;OPT&#39;, label: &#39;OPT&#39;, index: &#39;OPT&#39;, width: 100, editable: true, edittype: &#39;text&#39; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160; pager: &#39;#mypager&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 10,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList: [10, 20, 500],<br />&#160;&#160;&#160;&#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;&#160;&#160;&#160; loadonce: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true,<br /><strong>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; localReader : {id:&#39;AID&#39;},</strong><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;AID&#39;,<br />&#160;&#160;&#160;&#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;&#160;&#160;&#160; cellsubmit: &#39;clientArray&#39;,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onSelectRow: function(id) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (id &#38;&#38; id !== lastgridsel) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#mygrid&#39;).saveRow(lastgridsel, false, &#39;clientArray&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#mygrid&#39;).editRow(id, true, null, null, &#39;clientArray&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; lastgridsel = id;<br />&#160;&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; var mydata = [];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; function InitNew() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; for (var i = 0; i &#60; 100; i++) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mydata.push({ AID: i, MS: "123", GROUP: "56", REV: "78", OPT: "8" });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; myGrid.setGridParam({ data: mydata });<br /><strong>&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;myGrid[0].refreshIndex();<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;myGrid.trigger("reloadGrid");<br /></strong>&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; &#60;/script&#62;</p>
</div>
<p>You will need to manually refresh the index if you call it this way for the first time</p>
</p>
<p>Regards.</p>
<p>Problem Closed</p>
</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 13 Jul 2010 13:53:57 +0300</pubDate>
        </item>
        <item>
        	<title>jqwha on Losing edited cell data after paging</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/losing-edited-cell-data-after-paging#p18565</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/losing-edited-cell-data-after-paging#p18565</guid>
        	        	<description><![CDATA[<p>Hey Tony,</p>
<p>I added localReader but it still didn&#39;t work. I update the cell, click another row and the changes seem to stay. However, when I page forward and back - they revert to the original 🙁</p>
<p>Was that the only change I had to make? I&#39;m reading the additional page you sent but am not sure what else would help.</p>
</p>
<p>I should mention that this is being tested in IE6, however I used FFox 3.0 (just to be sure) too but had the same problem.</p>
</p>
<p>Thanks,</p>
<p>Bill</p>
]]></description>
        	        	<pubDate>Tue, 13 Jul 2010 13:08:56 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Losing edited cell data after paging</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/losing-edited-cell-data-after-paging#p18564</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/losing-edited-cell-data-after-paging#p18564</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Sorry I tested it with my data omithing the fact that you add it this way.</p>
</p>
<p>Add this in your grid configuration</p>
</p>
<p>..jqGrid({</p>
<p>...</p>
<p>localReader : {id:"AID"},</p>
<p>...</p>
<p>})</p>
<p>More here:</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:retrieving_data#array_data" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....array_data</a></p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 13 Jul 2010 12:51:11 +0300</pubDate>
        </item>
        <item>
        	<title>jqwha on Losing edited cell data after paging</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/losing-edited-cell-data-after-paging#p18563</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/losing-edited-cell-data-after-paging#p18563</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
<p>Thanks for getting back so quickly. Unfortunately I just tried you suggestion and it didn&#39;t work 🙁</p>
<p>I also tried combinations of &#39;clientArray&#39; in the editRow/saveRow and as an option parameter - but no luck.</p>
</p>
<p>Hope you can help? I&#39;ve included the whole file below.</p>
</p>
<p>Thanks,</p>
<p>Bill</p>
</p>
<p>&#60;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestJQGridClientArrayFromAC.aspx.cs"<br />&#160;&#160;&#160; Inherits="TestWebStuff.TestJQGridClientArrayFromAC" %&#62;</p>
<p>&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&#62;<br />&#60;html xmlns="http://www.w3.org/1999/xhtml"&#62;<br />&#60;head runat="server"&#62;<br />&#160;&#160;&#160; &#60;title&#62;&#60;/title&#62;<br />&#160;&#160;&#160; &#60;style&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; html, body<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; margin: 0;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; padding: 0;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; font-size: 75%;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; &#60;/style&#62;</p>
<p>&#160;&#160;&#160; &#60;script type="text/javascript" src="script/jquery-1.4.2.min.js"&#62;&#60;/script&#62;</p>
<p>&#160;&#160;&#160; &#60;link type="text/css" href="css/ui-lightness/jquery-ui-1.8.2.custom.css" rel="stylesheet" /&#62;<br />&#160;&#160;&#160; &#60;link type="text/css" href="css/ui.jqgrid.css" rel="stylesheet" /&#62;</p>
<p>&#160;&#160;&#160; &#60;script type="text/javascript" src="script/jquery-ui-1.8.1.custom.min.js"&#62;&#60;/script&#62;</p>
<p>&#160;&#160;&#160; &#60;script type="text/javascript" src="script/i18n/grid.locale-en.js"&#62;&#60;/script&#62;</p>
<p>&#160;&#160;&#160; &#60;script type="text/javascript" src="script/jquery.jqGrid.min.js"&#62;&#60;/script&#62;</p>
<p>&#160;&#160;&#160; &#60;script src="script/json2.js" type="text/javascript"&#62;&#60;/script&#62;</p>
<p>&#160;&#160;&#160; &#60;script type="text/javascript"&#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var myGrid;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var lastgridsel;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(document).ready(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; myGrid = jQuery("#mygrid").jqGrid({<br />&#160;&#160;&#160;&#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;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;AID&#39;, label: &#39;AID&#39;, index: &#39;AID&#39;, width: 100, editable: false, sorttype: "int" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;MS&#39;, label: &#39;MS&#39;, index: &#39;MS&#39;, width: 300, editable: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;GROUP&#39;, label: &#39;GROUP&#39;, index: &#39;GROUP&#39;, width: 100, editable: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;REV&#39;, label: &#39;REV&#39;, index: &#39;REV&#39;, width: 100, editable: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;OPT&#39;, label: &#39;OPT&#39;, index: &#39;OPT&#39;, width: 100, editable: true, edittype: &#39;text&#39; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160; pager: &#39;#mypager&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 10,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList: [10, 20, 500],<br />&#160;&#160;&#160;&#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;&#160;&#160;&#160; loadonce: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;AID&#39;,<br />&#160;&#160;&#160;&#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;&#160;&#160;&#160; cellsubmit: &#39;clientArray&#39;,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onSelectRow: function(id) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (id &#38;&#38; id !== lastgridsel) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#mygrid&#39;).saveRow(lastgridsel, false, &#39;clientArray&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#mygrid&#39;).editRow(id, true, null, null, &#39;clientArray&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; lastgridsel = id;<br />&#160;&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; var mydata = [];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; function InitNew() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; for (var i = 0; i &#60; 100; i++) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mydata.push({ AID: i, MS: "123", GROUP: "56", REV: "78", OPT: "8" });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; myGrid.setGridParam({ data: mydata }).trigger("reloadGrid");</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; &#60;/script&#62;</p>
<p>&#60;/head&#62;<br />&#60;body&#62;<br />&#160;&#160;&#160; &#60;form id="form1" runat="server"&#62;<br />&#160;&#160;&#160; &#60;table id="mygrid"&#62;<br />&#160;&#160;&#160; &#60;/table&#62;<br />&#160;&#160;&#160; &#60;div id="mypager"&#62;<br />&#160;&#160;&#160; &#60;/div&#62;<br />&#160;&#160;&#160; &#60;input type="button" id="btnGo" value="Go" onclick="InitNew()"/&#62;<br />&#160;&#160;&#160; &#60;/form&#62;<br />&#60;/body&#62;<br />&#60;/html&#62;</p>
]]></description>
        	        	<pubDate>Tue, 13 Jul 2010 12:36:58 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Losing edited cell data after paging</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/losing-edited-cell-data-after-paging#p18560</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/losing-edited-cell-data-after-paging#p18560</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Just tested your example copyng the code to my demo.</p>
<p>I wonder how this work in your system.</p>
<p>In order to work this do</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1852' value='Select Code' data-codeid='sfcode1852' /></p>
<div class='sfcode' id='sfcode1852'>
<p>&#8230;</p>
<p>&#160;onSelectRow: function(id) {<br />&#160;&#160; if (id &#38;&#38; id !== lastgridsel) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#mygrid&#39;).saveRow(lastgridsel, false, &#39;clientArray&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <strong>jQuery(&#39;#mygrid&#39;).editRow(id, true, null, null, &#39;clientArray&#39;);</strong><br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; lastgridsel = id;<br />&#160;&#160; }<br />}</p>
<p>&#8230;</p>
</div>
<p>or just set</p>
<p>editurl:&#39;clientArray&#39;</p>
<p>in the grid options ommiting this parameter in saveRow and editRow</p>
</p>
<p>Best regards</p>
<p>Tony</p></p>
]]></description>
        	        	<pubDate>Tue, 13 Jul 2010 11:26:12 +0300</pubDate>
        </item>
        <item>
        	<title>jqwha on Losing edited cell data after paging</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/losing-edited-cell-data-after-paging#p18559</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/losing-edited-cell-data-after-paging#p18559</guid>
        	        	<description><![CDATA[<p>Hi - was wondering if this really is a bug? I just can&#39;t get it to persist the data.</p>
</p>
<p>Thanks for any help you can give,</p>
<p>Bill</p>
]]></description>
        	        	<pubDate>Tue, 13 Jul 2010 10:51:42 +0300</pubDate>
        </item>
        <item>
        	<title>jqwha on Losing edited cell data after paging</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/losing-edited-cell-data-after-paging#p18537</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/losing-edited-cell-data-after-paging#p18537</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I&#39;m building a completely "client side" grid however if I enable inline editing, the changes I make are lost if I change the grid page.</p>
<p>Hopefully someone can point out what I&#39;m missing</p>
</p>
<p>The Grid setup is shown below along with the function I call to fill it with test data:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; var myGrid;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var lastgridsel;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(document).ready(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; myGrid = jQuery("#mygrid").jqGrid({<br />&#160;&#160;&#160;&#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;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;AID&#39;, label: &#39;AID&#39;, index: &#39;AID&#39;, width: 100, editable: false, sorttype: "int" },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;MS&#39;, label: &#39;MS&#39;, index: &#39;MS&#39;, width: 300, editable: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;GROUP&#39;, label: &#39;GROUP&#39;, index: &#39;GROUP&#39;, width: 100, editable: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;REV&#39;, label: &#39;REV&#39;, index: &#39;REV&#39;, width: 100, editable: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;OPT&#39;, label: &#39;OPT&#39;, index: &#39;OPT&#39;, width: 100, editable: true, edittype: &#39;text&#39; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160; pager: &#39;#mypager&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 10,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList: [10, 20, 500],<br />&#160;&#160;&#160;&#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;&#160;&#160;&#160; loadonce: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortname: &#39;AID&#39;,<br />&#160;&#160;&#160;&#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;&#160;&#160;&#160; cellsubmit: &#39;clientArray&#39;,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onSelectRow: function(id) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (id &#38;&#38; id !== lastgridsel) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#mygrid&#39;).saveRow(lastgridsel, false, &#39;clientArray&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery(&#39;#mygrid&#39;).editRow(id, true);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; lastgridsel = id;<br />&#160;&#160;&#160;&#160;&#160;&#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;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; });<br />&#160;&#160;&#160;&#160;&#160;&#160; &#160;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; var mydata = [];<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; function InitNew() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; for (var i = 0; i &#60; 100; i++) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mydata.push({ AID: i, MS: "123", GROUP: "456", REV: "78", OPT: "8" });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; myGrid.setGridParam({ data: mydata }).trigger("reloadGrid");</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
</p>
<p>This shows 10 pages, 100 records. If I click the "OPT" column, I can change the value in the textbox and when I click another row, the data appears to be saved. However, once I go to another page and back to the first page, the data reverts to its original value.</p>
</p>
<p>Hope someone can help (FWIW this is an urgent issue - aren&#39;t they all? 🙂 Would really appreciate a hint.</p>
</p>
<p>Thanks,</p>
<p>Bill</p></p>
]]></description>
        	        	<pubDate>Mon, 12 Jul 2010 14:05:51 +0300</pubDate>
        </item>
</channel>
</rss>