<?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: sorting using jsonstring , form edit with 3.5</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/sorting-using-jsonstring-form-edit-with-35</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/sorting-using-jsonstring-form-edit-with-35/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on sorting using jsonstring , form edit with 3.5</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sorting-using-jsonstring-form-edit-with-35#p7368</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sorting-using-jsonstring-form-edit-with-35#p7368</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>This will not work if you settings reloadAfterSubmit is set to true. It is some task for you why is this happen 🙂 (it is all connected with the way that you call trigger in afterSubmit)</p>
<p>I recommend you to use afterComplete event in form editing to sort the new inserted row - i.e call trigger("reloadGrid") in this event</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 21 Jun 2009 06:06:24 +0300</pubDate>
        </item>
        <item>
        	<title>soverture on sorting using jsonstring , form edit with 3.5</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/sorting-using-jsonstring-form-edit-with-35#p7326</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/sorting-using-jsonstring-form-edit-with-35#p7326</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I am trying to figure out how to do sorting using datatype jsonstring and form editing with multiple select using jqgrid 3.5 beta version.</p>
<p>When the first time the grid loads up the sorting is fine. But after add, edit or delete ( i am using multiple select for delete) the grid soting goes off.</p>
<p>I am using struts 2 to load up the data, edit , add, delete. The server return data in a jsonstring. I do not do any sorting on server side. I want all the sorting on the client side.</p>
<p>I have afterSubmit function</p>
<p>afterSubmit:function reloadGrid(data,postdata){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; result = data.responseText.split(":");<br />&#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;&#160;&#160; &#160;&#160;&#160; if (result[0]=="error") {<br />&#160;&#160;&#160;&#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;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; return [false,result[1],""];<br />&#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;&#160;&#160; &#160;&#160;&#160; if (result[0]=="ok"){<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; //alert(result[1]);</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jQuery("#incomelist").trigger("reloadGrid");</p>
</p>
<p>&#160;&#160;&#160; &#160;&#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; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; window.location.href=window.location.href;<br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; return [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;&#160; <br />&#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; }</p>
</p>
<p>But the sorting does not seem to work . I have tried mutliple things and read the documentation but I cannot figure out what I am doing wrong that the sorting is going off. I do window.location.href to refresh the page as I have totals which get updated.</p>
</p>
<p>I hope someone can help me 🙂</p></p>
]]></description>
        	        	<pubDate>Thu, 18 Jun 2009 15:39:44 +0300</pubDate>
        </item>
</channel>
</rss>