<?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: reloadAfterSubmit &#38; editGridRow problem, maybe a bug</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/reloadaftersubmit-editgridrow-problem-maybe-a-bug</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/reloadaftersubmit-editgridrow-problem-maybe-a-bug/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>ivanchain on reloadAfterSubmit &#38; editGridRow problem, maybe a bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reloadaftersubmit-editgridrow-problem-maybe-a-bug#p20667</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reloadaftersubmit-editgridrow-problem-maybe-a-bug#p20667</guid>
        	        	<description><![CDATA[<p>tony, any other sugguestions?</p>
</p>
<p>half a year passed, but the problem is still there....</p>
<p>yours</p>
<p>ivan</p>
]]></description>
        	        	<pubDate>Thu, 04 Nov 2010 12:56:03 +0200</pubDate>
        </item>
        <item>
        	<title>ivanchain on reloadAfterSubmit &#38; editGridRow problem, maybe a bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reloadaftersubmit-editgridrow-problem-maybe-a-bug#p19875</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reloadaftersubmit-editgridrow-problem-maybe-a-bug#p19875</guid>
        	        	<description><![CDATA[<p>Tony, please.</p>
</p>
<p>I found if I add the data manually(I mean, don&#39;t set the data&#39;s url, just add data at the client side), there is no such prev/next button problem.</p>
</p>
<p>But if I use the data url to get the data, the prev/next button problem is there.</p>
<p>Could you have a check about this?</p>
</p>
<p>yours,</p>
<p>Ivan</p>
]]></description>
        	        	<pubDate>Mon, 20 Sep 2010 03:27:25 +0300</pubDate>
        </item>
        <item>
        	<title>ivanchain on reloadAfterSubmit &#38; editGridRow problem, maybe a bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reloadaftersubmit-editgridrow-problem-maybe-a-bug#p19785</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reloadaftersubmit-editgridrow-problem-maybe-a-bug#p19785</guid>
        	        	<description><![CDATA[<p>tony, any other sugguestions?</p>
<p>I add the grid just like what the example do.</p>
<p>It&#39;s not about the Insert. Don&#39;t insert anything, just load the grid, and try the pre/next button, move the&#160;editform aside from the screen&#160;to see the grid behide it,&#160; you will see&#160;there are two &#160;current rows selected at the same time.</p>
<p>yours,</p>
<p>Ivan</p>
]]></description>
        	        	<pubDate>Wed, 15 Sep 2010 05:43:46 +0300</pubDate>
        </item>
        <item>
        	<title>ivanchain on reloadAfterSubmit &#38; editGridRow problem, maybe a bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reloadaftersubmit-editgridrow-problem-maybe-a-bug#p19736</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reloadaftersubmit-editgridrow-problem-maybe-a-bug#p19736</guid>
        	        	<description><![CDATA[<p>Tony, I have checked it, this is the json return like:</p>
</p>
<p>{"page":1,"total":5,"records":132,"rows":[{"id":1,"cell":["799","/KPIupload/SelfPhoto/my.jpg","/KPIupload/SelfPhoto/my.jpg","åˆ˜è²112","2","ç”·","æ±‰","2","å…±äº§å…šå‘˜","1","æœªæŒ‡å®š","01/04/1985 00:00","06/08/2000 00:00","04/01/2001 00:00","3","åŒ—äº¬å¸‚","3","å·²å©š","42010719761124411X","6524021","0755-7564325","13007755431","<a href="mailto:idr@hotmail.com" target="_blank">idr@hotmail.com</a>","æ·±åœ³å¸‚å®å®‰åŒº13å·","å¼ å…°","1302984321","1","æœªæŒ‡å®š","1","æœªæŒ‡å®š","1","æœªæŒ‡å®š","1","æœªæŒ‡å®š","799","12345678","","123456","1&#124;1&#124;1&#124;1&#124;1&#124;1&#124;1&#124;0&#124;1","3:é”€å”®éƒ¨","1","1","1"]},{"id":2,"cell":[.......].......</p>
<p>}</p>
</p>
<p>you could see,&#160; the "id" in the "rows" is added itself and have NO&#160;equal row ids into the grid. In fact I create the id in the server code like:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; t =t +1;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;JQGrid.Row row = new JQGrid.Row(); <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; row.id =t;</p>
</p>
<p>So&#160; the rowid is always added itself and will not be equeal&#160;between every two rows.</p>
<p>I can&#39;t see anything wrong with the rowid.</p>
</p>
<p>yours,</p>
<p>Ivan</p>
]]></description>
        	        	<pubDate>Sun, 12 Sep 2010 19:09:25 +0300</pubDate>
        </item>
        <item>
        	<title>tony on reloadAfterSubmit &#38; editGridRow problem, maybe a bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reloadaftersubmit-editgridrow-problem-maybe-a-bug#p19702</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reloadaftersubmit-editgridrow-problem-maybe-a-bug#p19702</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>1), 2) The problem that maybe you have is that you have equal row ids into the grid or ids which are not correct.</p>
<p>Please check these. Also check what is your new rowid after the&#160; new row is inserted.</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sat, 11 Sep 2010 14:08:44 +0300</pubDate>
        </item>
        <item>
        	<title>ivanchain on reloadAfterSubmit &#38; editGridRow problem, maybe a bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reloadaftersubmit-editgridrow-problem-maybe-a-bug#p19646</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reloadaftersubmit-editgridrow-problem-maybe-a-bug#p19646</guid>
        	        	<description><![CDATA[<p>Tony, please?</p>
</p>
<p>this problem drive the pre/next button can&#39;t really be used in editform.</p>
</p>
<p>yours</p>
<p>Ivan</p>
]]></description>
        	        	<pubDate>Fri, 10 Sep 2010 06:43:36 +0300</pubDate>
        </item>
        <item>
        	<title>ivanchain on reloadAfterSubmit &#38; editGridRow problem, maybe a bug</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/reloadaftersubmit-editgridrow-problem-maybe-a-bug#p19534</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/reloadaftersubmit-editgridrow-problem-maybe-a-bug#p19534</guid>
        	        	<description><![CDATA[<p>Hi there, I have 2 issues that I am not sure if it is a bug in jqgrid or I am missing something.</p>
<p>I am in jqgrid 3.6, and I create a jqgrid like this:</p>
</p>
<p>jQuery(&#8220;#list&#8221;).jqGrid({url:&#39;/KPIGetData/DimData.aspx?SearchInput=childuserforedit,&#160;&#160;&#160;</p>
<p>datatype: &#39;json&#39;,height:&#39;auto&#39;,colModel :</p>
<p>[{label:&#39;olapkey&#39;,name:&#39;olapkey&#39;, index:&#39;olapkey&#39;,width:55, sorttype:&#39;int&#39;,hidden:true, align:&#39;center&#39;,classes:&#39;JqGrid&#39;},</p>
<p>{label:&#39;test&#39;,name:&#39;test&#39;, index:&#39;test&#39;,width:55, sorttype:&#39;int&#39;,hidden:true, align:&#39;center&#39;,classes:&#39;JqGrid&#39;}</p>
<p>],</p>
<p>pager: &#39;pager1&#39;,</p>
<p>sortname: &#39;olapkey&#39;,</p>
<p>gridview:true,</p>
<p>scroll:false,</p>
<p>rowList:[10,20,35],</p>
<p>rowNum:35,</p>
<p>sortorder: &#39;desc&#39;,</p>
<p>viewrecords:true,</p>
<p>caption: &#8216;&#8217;</p>
<p>});</p>
</p>
<p>Yes, I can create the jqgrid well, and the data could be loaded from server well, and I can edit the data and save it back to the server well !&#160; But the problem is:</p>
</p>
<p>Issue 1. if I set the reloadAfterSubmit:true in editGridRow, a strange thing will happen:</p>
<p>&#160;&#160; var grid = jQuery("#list1");</p>
<p>&#160;&#160; var rowKey = grid.getGridParam("selrow");</p>
<p>&#160;grid.editGridRow(rowKey, {top:setcentertop(500),left:setcenterleft(1100),width:"1100",editCaption:"edit"+currentEditName,bSubmit:"saveit",bCancel:"exitout",reloadAfterSubmit:true,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype:"POST",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: "/KPIGetData/DimSavingData.aspx</p>
<p>&#160;&#160; });</p>
</p>
<p>When I click the save button in the edit form, the&#160; data will be saved to the server sucsessfully,&#160;aftter that, I click the exit button to close the edit form,&#160; then I click another row of the jqgrid, the strange thing just happened:&#160; the new row is chosen, but the old row is still highlight and kept the selected row color! So there are two rows selected in the jqgrid(I never set the mulitselect option)!&#160; I have tried to set the reloadAfterSubmit:false, yes, if the reloadAfterSubmit:false, this problem is gone.</p>
</p>
<p>Issue 2. It&#39;s about the Pre/next button in the edit form, and seems very similar to the Issue 1.</p>
<p>In the edit form at Issue 1,&#160; if I click the Pre/next button,&#160; the same strange thing will happened: in the jqgrid, the&#160;new row is chosen, but the old row is still highlight and kept the selected row color! So there are two rows selected in the jqgrid.</p>
</p>
<p>Pelase help, maybe it&#39;s a bug in 3.6</p>
</p>
<p>yours,</p>
<p>Ivan</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</p>
]]></description>
        	        	<pubDate>Sun, 05 Sep 2010 18:31:30 +0300</pubDate>
        </item>
</channel>
</rss>