<?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: Undesired data sorting when scrolling in virtual mode</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/undesired-data-sorting-when-scrolling-in-virtual-mode</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/undesired-data-sorting-when-scrolling-in-virtual-mode/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>meas_meas on Undesired data sorting when scrolling in virtual mode</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/undesired-data-sorting-when-scrolling-in-virtual-mode#p27239</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/undesired-data-sorting-when-scrolling-in-virtual-mode#p27239</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I want to report a small bug in jqGrid 4.4.1 with jquery 1.8.0.</p>
<p>When using these settings for the grid, an undesired sorting is happening during the loading of new data (do a big scrolling).</p>
<p>I reproduce it only with Chrome (21.0.1180.83m).</p>
<p>All the columns have sortable set to false.</p>
</p>
<p>datatype: "jsonstring",</p>
<p>datastr: myStringData,</p>
<p>jsonReader: { repeatitems: false, root: "Data" },</p>
<p>loadonce: true,</p>
</p>
<p>gridview: true,</p>
<p>sortable: false,</p>
<p>cellEdit: false,</p>
<p>multiselect: false,</p>
<p>rownumbers: false,</p>
<p>autowidth: false,</p>
<p>forceFit: false,</p>
<p>shrinkToFit: false,</p>
<p>height: &#39;auto&#39;,</p>
<p>width: &#39;auto&#39;,</p>
</p>
<p>rowNum: 10,</p>
<p>rowTotal: 1000,</p>
<p>scroll: 1,</p>
</p>
<p>The culprit seems to be this line (1520) in addLocalData function:</p>
</p>
<p><span style="white-space:pre"><span style="white-space: pre;"> </span> </span>if(!fndsort &#38;&#38; (this.index == ts.p.sortname &#124;&#124; this.name == ts.p.sortname)){</p>
<p><span style="white-space: pre;"> </span>st = this.name; // ???</p>
<p><span style="white-space: pre;"> </span>fndsort = true;</p>
<p><span style="white-space:pre"><span style="white-space: pre;"> </span> </span>}</p>
</p>
<p>When sortname is an empty string, the condition is true for the index 0.</p>
<p>I suggest this correction:</p>
</p>
<p><span style="white-space:pre"><span style="white-space: pre;"> </span></span>if(!fndsort &#38;&#38; this.sortable &#38;&#38; (this.index == ts.p.sortname &#124;&#124; this.name == ts.p.sortname)){</p>
</p>
<p>Regards,</p>
<p>P.OM</p>
<p><span style="white-space:pre"> </span></p>
]]></description>
        	        	<pubDate>Fri, 31 Aug 2012 17:27:43 +0300</pubDate>
        </item>
</channel>
</rss>