<?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: after reload the sort can't work well</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/after-reload-the-sort-cant-work-well</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/after-reload-the-sort-cant-work-well/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on after reload the sort can't work well</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/after-reload-the-sort-cant-work-well#p17668</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/after-reload-the-sort-cant-work-well#p17668</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Your example work perfectly in my demo system.</p>
<p>The only change that I have mage is this:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit4204' value='Select Code' data-codeid='sfcode4204' /></p>
<div class='sfcode' id='sfcode4204'>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; onPaging: function(which_button) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#34;#InternetGrid&#34;).jqGrid(&#39;setGridParam&#39;,{ datatype: &#39;json&#39; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadError: function(xhr, status, error) {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(xhr.responseText);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadComplete: function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#34;#InternetGrid&#34;).jqGrid(&#39;setGridParam&#39;,{ datatype: &#39;local&#39; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
</p>
</div>
<p>Note how this is written</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 02 Jun 2010 11:11:35 +0300</pubDate>
        </item>
        <item>
        	<title>nanlinfeixue on after reload the sort can't work well</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/after-reload-the-sort-cant-work-well#p17660</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/after-reload-the-sort-cant-work-well#p17660</guid>
        	        	<description><![CDATA[<p>hello&#160;,</p>
<p>I added<span style="color: #ff0000;"> sortname: "DoTime",</span></p>
<p>Using the latest version 3.7 bata, all the columns can not be sort.</p>
<p>Using the&#160;version 3.6.5,the problem is still.</p>
</p>
<p>Thanks.</p>
<p>Best Regards</p>
<p>Jerry</p>
]]></description>
        	        	<pubDate>Wed, 02 Jun 2010 04:53:32 +0300</pubDate>
        </item>
        <item>
        	<title>tony on after reload the sort can't work well</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/after-reload-the-sort-cant-work-well#p17642</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/after-reload-the-sort-cant-work-well#p17642</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>If you add</p>
<p>sortname: "Some valid from colmodel name"</p>
<p>you will not have a problem. The fix is in another position of the code.</p>
<p>Will try to test it.</p>
<p>Thanks.</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 01 Jun 2010 13:25:19 +0300</pubDate>
        </item>
        <item>
        	<title>nanlinfeixue on after reload the sort can't work well</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/after-reload-the-sort-cant-work-well#p17600</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/after-reload-the-sort-cant-work-well#p17600</guid>
        	        	<description><![CDATA[<p>hello&#160;,Tony</p>
<p>you see i set the datatype:local</p>
<p>&#160;loadComplete: function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#InternetGrid").setGridParam({ datatype: &#39;local&#39; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p>
<p>so i think is a bug</p>
<p>thanks</p>
<p>Best regards</p>
<p>jerry</p>
]]></description>
        	        	<pubDate>Mon, 31 May 2010 04:12:43 +0300</pubDate>
        </item>
        <item>
        	<title>tony on after reload the sort can't work well</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/after-reload-the-sort-cant-work-well#p17569</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/after-reload-the-sort-cant-work-well#p17569</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>The sorttype: &#39;int&#39; have sense only if you use local data (i.e array) I think the problem is in you server side code.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Sun, 30 May 2010 11:54:48 +0300</pubDate>
        </item>
        <item>
        	<title>nanlinfeixue on after reload the sort can't work well</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/after-reload-the-sort-cant-work-well#p17535</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/after-reload-the-sort-cant-work-well#p17535</guid>
        	        	<description><![CDATA[<p><span style="color: #ff0000;">at first it can be work well&#160;</span></p>
<p>$("#InternetGrid").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; url: &#39;/PopularFeelCollect/ChildPage/Internet.aspx&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: "json",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: 340,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;ç±»åˆ«&#39;, &#39;å…³é”®è¯&#39;, &#39;æœ€æ–°é‡‡é›†æ—¶é—´&#39;, &#39;é‡‡é›†æ•°é‡&#39;, &#39;å­ç³»ç»Ÿé‡‡é›†&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;DataType&#39;, index: &#39;DataType&#39;, width: &#39;15%&#39;, sortable: false, align: &#39;center&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;KeyWords&#39;, index: &#39;KeyWords&#39;, width: &#39;50%&#39;, sortable: false, align: &#39;left&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;DoTime&#39;, index: &#39;DoTime&#39;, width: &#39;20%&#39;, align: &#39;center&#39;},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;DataCount&#39;, index: &#39;DataCount&#39;, width: &#39;15%&#39;, align: &#39;center&#39;, sorttype: &#39;int&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;SiteCount&#39;, index: &#39;SiteCount&#39;, width: &#39;0%&#39;, hidden: true,sortable: false}<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; jsonReader: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; repeatitems: false<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadui: &#39;block&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; viewrecords: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; pagerpos: &#39;center&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowNum: 20,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; rowList: [10, 20, 30],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; pgtext: "ç¬¬ {0} é¡µï¼å…± {1} é¡µ",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; recordtext: &#39;ç¬¬ {0} &#8211; {1} æ¡&#160; å…± {2} æ¡&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; emptyrecords: &#39;æš‚æ— è®°å½•&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; pager: "#InternetPager",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; onPaging: function(which_button) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#InternetGrid").setGridParam({ datatype: &#39;json&#39; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadError: function(xhr, status, error) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert(xhr.responseText);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadComplete: function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#InternetGrid").setGridParam({ datatype: &#39;local&#39; });<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160; }).jqGrid(&#39;navGrid&#39;, &#39;#InternetPager&#39;, { search: false, edit: false, add: false, del: false });</p>
<p><span style="color: #ff0000;">but&#160; after i&#160; call this </span><a class="wikilink1" title="wiki:methods" href="/jqgridwiki/doku.php?id=wiki:methods" target="_blank"><span style="color: #ff0000;">Methods</span></a><span style="color: #ff0000;">&#160;</span></p>
<p>$("#InternetGrid").setGridParam({ datatype: &#39;json&#39;, url: "/PopularFeelCollect/ChildPage/Internet.aspx?type=news", page: 1 }).trigger("reloadGrid");</p>
<p><span style="color: #ff0000;">click the é‡‡é›†æ•°é‡ to sort,i find it cann&#39;t sort by int.</span></p>
<p><span style="color: #ff0000;">but if i&#160;first click æœ€æ–°é‡‡é›†æ—¶é—´ then click the é‡‡é›†æ•°é‡ it&#160;will be&#160;working well.</span></p>
<p><span style="color: #ff0000;">&#160;</span></p>
<p><span style="color: #ff0000;">the json data</span></p>
<div class="netInfoResponseText  netInfoText ">{"total":"7","records":"123","page":"1","rows":[<br />{"Id":"136","DataType":"!!æœªåˆ†ç±»","KeyWords":"å‡¤å§","DoTime":"2010-05-28 16:47:29","DataCount":1119,"SiteCount":null},<br />{"Id":"135","DataType":"ç½‘ç»œåäºº","KeyWords":"æ›¾å“¥","DoTime":"2010-05-28 14:08:25","DataCount":910,"SiteCount":null},<br />{"Id":"134","DataType":"ç½‘ç»œåäºº","KeyWords":"æ˜¥å“¥","DoTime":"2010-05-28 14:07:31","DataCount":1175,"SiteCount":null},<br />{"Id":"133","DataType":"ç½‘ç»œåäºº","KeyWords":"çŠ€åˆ©å“¥","DoTime":"2010-05-28 14:08:06","DataCount":3195,"SiteCount":null},<br />{"Id":"132","DataType":"ç½‘ç»œåäºº","KeyWords":"åŠ›é‡ç”·","DoTime":"2010-05-28 14:06:50","DataCount":310,"SiteCount":null},<br />{"Id":"131","DataType":"ç½‘ç»œåäºº","KeyWords":"èŠ™è“‰å§å§","DoTime":"2010-05-28 11:16:59","DataCount":1356,"SiteCount":null},<br />{"Id":"129","DataType":"ç½‘ç»œåäºº","KeyWords":"æŽå®‡æ˜¥","DoTime":"2010-05-28 10:37:42","DataCount":2841,"SiteCount":null},<br />{"Id":"128","DataType":"ç½‘ç»œåäºº","KeyWords":"æ›¾è½¶å¯","DoTime":2010-05-28 11:38:52,"DataCount":0,"SiteCount":null},<br />{"Id":"127","DataType":"ç½‘ç»œåäºº","KeyWords":"æŠ½çƒŸç”·","DoTime":"2010-05-28 11:38:52","DataCount":1001,"SiteCount":null},<br />{"Id":"126","DataType":"ç½‘ç»œåäºº","KeyWords":"å…½å…½","DoTime":"2010-05-28 11:38:26","DataCount":1536,"SiteCount":null},<br />{"Id":"125","DataType":"ç½‘ç»œåäºº","KeyWords":"é—«å‡¤å¨‡","DoTime":"2010-05-28 11:37:57","DataCount":80,"SiteCount":null},<br />{"Id":"124","DataType":"ç½‘ç»œåäºº","KeyWords":"åŽèˆç”·ç”Ÿ","DoTime":"2010-05-28 11:37:30","DataCount":429,"SiteCount":null},<br />{"Id":"123","DataType":"ç½‘ç»œåäºº","KeyWords":"å°æ²ˆé˜³","DoTime":null,"DataCount":0,"SiteCount":null},<br />{"Id":"122","DataType":"ç½‘ç»œåäºº","KeyWords":"æ•™æŽˆ","DoTime":"2010-05-28 11:36:50","DataCount":921,"SiteCount":null},<br />{"Id":"121","DataType":"ç½‘ç»œåäºº","KeyWords":"åˆ˜è°¦","DoTime":"2010-05-28 11:35:22","DataCount":777,"SiteCount":null},<br />{"Id":"120","DataType":"ç½‘ç»œåäºº","KeyWords":"é™¶å®å¼€","DoTime":"2010-05-28 11:35:12","DataCount":775,"SiteCount":null},<br />{"Id":"119","DataType":"ç½‘ç»œåäºº","KeyWords":"ä¸‰å­£ç¨»":"2010-05-28 11:33:57","DataCount":765,"SiteCount":null},<br />{"Id":"118","DataType":"ç½‘ç»œåäºº","KeyWords":"é£žå§é‡Žç‰›","DoTime":"2010-05-28 11:32:34","DataCount":765,"SiteCount":null},<br />{"Id":"117","DataType":"ç½‘ç»œåäºº","KeyWords":"å°èƒ–","DoTime":"2010-05-28 11:31:17","DataCount":1256,"SiteCount":null},<br />{"Id":"116","DataType":"ç½‘ç»œåäºº","KeyWords":"éžå¸¸çœŸäºº","DoTime":"2010-05-28 11:30:22","DataCount":760,"SiteCount":null}]}</div>
]]></description>
        	        	<pubDate>Fri, 28 May 2010 12:01:51 +0300</pubDate>
        </item>
</channel>
</rss>