<?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: Negative Record numbers in version 3.6.4</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/negative-record-numbers-in-version-3-6-4</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/negative-record-numbers-in-version-3-6-4/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>SimonL on Negative Record numbers in version 3.6.4</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/negative-record-numbers-in-version-3-6-4#p17281</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/negative-record-numbers-in-version-3-6-4#p17281</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
</p>
<p>Ok, worked out how to handle this problem and still show my image and still have dynamic scrolling. Originally I had multi-line rows but the height of rows was different because some some rows have an image and some don&#39;t. I simply amended the css for the row to be a fixed height.</p>
<p>.ui-jqgrid tr.jqgrow td.wrap {<br />&#160;&#160;&#160; white-space: normal !important;<br />&#160;&#160;&#160; height:100px;<br />&#160;&#160;&#160; padding-top:2px;<br />}</p>
</p>
<p>The row/record numbers are now correct.</p>
<p>Hope this might help someone else.</p>
</p>
<p>Regards,</p>
<p>Simon</p>
]]></description>
        	        	<pubDate>Tue, 18 May 2010 17:30:06 +0300</pubDate>
        </item>
        <item>
        	<title>SimonL on Negative Record numbers in version 3.6.4</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/negative-record-numbers-in-version-3-6-4#p17278</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/negative-record-numbers-in-version-3-6-4#p17278</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
</p>
<p>I don&#39;t think is this a problem from the server. In my grid I have multi-line rows and from what I can gather at /blog/?page_id=393/help/multiline-rows-breaks-dynamic-scrolling-grids/&#38;value=multiple%20lines&#38;type=3&#38;include=1&#38;search=1 This appears to break dynamic scrolling (scroll:1). When I make my grid only single lines per row it then I didn&#39;t get any negative row/record numbers.</p>
</p>
<p>One of the main things I need to do in my app is display an image in one of the grid columns (I have a custom formatter that displays it) but this of course causes the grid to have multi-line rows.</p>
</p>
<p>I looked at the list of changes you did for 3.6.5 but I didn&#39;t see this issue mentioned. I really like the dynamic scroll and would love to be able to use it. I&#39;ve used it on all my other grids in my application and would love to use it in this one with the mult-line rows to keep everything the same for the user.</p>
</p>
<p>Is this still a problem or is there a work-around you can think of?</p>
</p>
<p>Regards,</p>
<p>Simon</p></p>
]]></description>
        	        	<pubDate>Tue, 18 May 2010 16:51:49 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Negative Record numbers in version 3.6.4</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/negative-record-numbers-in-version-3-6-4#p17244</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/negative-record-numbers-in-version-3-6-4#p17244</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Obviously this is a problem form the server response not from the grid.</p>
<p>Search this forum and you will find a lot of therads regarding this instead to wait 6 days for the answer!!!.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 17 May 2010 22:25:41 +0300</pubDate>
        </item>
        <item>
        	<title>SimonL on Negative Record numbers in version 3.6.4</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/negative-record-numbers-in-version-3-6-4#p17209</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/negative-record-numbers-in-version-3-6-4#p17209</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I&#39;ve&#160;<em> </em>already posted this in another topic called Negative record numbers because I&#39;m having the same issue, but unfortunately my question has not been answered and I posted the issue 6 days ago, so I&#39;m assuming somehow my post has been missed so here goes again ...</p>
</p>
<div id="post17079">I&#39;m using version 3.6.4. I have several grids in my  application and all but one are working correctly. They scroll correctly  and pass the correct data back to the server. </p>
<p>I have all the grids set up to use the auto scrolling feature which  calls back to the server for more data when you scroll down the grid.  When the grid initially loads the data, the server side routine that  receives: page, rows, _search, sidx, sord, nd, filters as the query  string and receives page=1 which is correct. Then when I scroll passed the  frist page (20 records) the value for page is set to 2, which is also  correct. If I scroll further the value for page is 2 again, instead of  3. And once its starts to do that the record numbers go negative (i.e. View -9 - 20 of 649). I&#39;ve tried various different setiings of rowNum but nothing seems to work.</p>
</p>
<p>All the grids in my application inherit defaults like so:</p>
</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $.jgrid.defaults = $.extend($.jgrid.defaults, {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  datatype: &#39;json&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mtype: &#39;POST&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  height: &#39;auto&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; imgpath:  &#39;/Scripts/themes/ui-darkness/images&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jsonReader: {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  root: "Rows",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; page: "Page",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  total: "Total",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; records: "Records",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  repeatitems: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; userdata: "UserData",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  id: "Id"<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;&#160;&#160;&#160;&#160; autowidth: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  height: &#39;auto&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadui: "block",<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  rowNum: 20,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //rowList: [10, 20, 30],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  rownumbers: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; scroll: 1,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  multiselect: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: 400,<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; loadError: function(xhr, status,  error) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (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;  alert("Error loading data, invalid response from server. " + "(" +  status + ")");<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; toolbar: [true, "top"],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sortable:  true,</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; onSelectRow: function(rowid, status) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  RowId = rowid;<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;&#160;&#160;&#160;&#160; onSelectAll:  function(aRowids, status) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; GALLERY_WEB.selectAll  = status;<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;&#160;&#160;&#160;&#160; gridComplete:  function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (GALLERY_WEB.selectAll) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  rows = $(&#39;.entity_grid&#39;).jqGrid(&#39;getRowData&#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;  $(&#39;.entity_grid&#39;).jqGrid(&#39;resetSelection&#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;  for (var x = 0; x &#60; rows.length; x++) {<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;&#160;&#160;&#160;  $(&#39;.entity_grid&#39;).jqGrid(&#39;setSelection&#39;, rows[x].rn);<br />&#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; var gridID = $(&#39;.entity_grid&#39;).attr(&#39;id&#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;  $(&#39;#cb_&#39; + gridID).attr(&#39;checked&#39;, true);<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; });</p>
<p>And the grid that displays the incorrect behaviour is defined like  so:</p>
</p>
<p>GALLERY_WEB.grid_def_Stock = {<br />&#160;&#160;&#160; url: &#39;GetListData/&#39;,<br />&#160;&#160;&#160;  primaryKey: &#39;StockNumberID&#39;,<br />&#160;&#160;&#160; pager: "#pager",<br />&#160;&#160;&#160; toppager:  true,<br />&#160;&#160;&#160; sortname: &#39;StockNumberID&#39;,<br />&#160;&#160;&#160; sortorder: "desc",<br />&#160;&#160;&#160;  viewrecords: true,<br />&#160;&#160;&#160; caption: "Stock",<br />&#160;&#160;&#160; footerrow: true,<br />&#160;&#160;&#160;  userDataOnFooter: true,<br />&#160;&#160;&#160; colNames: [<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;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;  ...... column names .......<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160; colModel: [<br />&#160;  &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&#160; ...... column definitions .......</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ]</p>
<p>};</p>
<p>Have you any idea whats going wrong?</p>
</p>
<p>Thanks,</p>
<p>Simon</p>
</div>
]]></description>
        	        	<pubDate>Mon, 17 May 2010 10:19:52 +0300</pubDate>
        </item>
</channel>
</rss>