<?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: Issues when specifying rowNum as a string in 4.5.2</title>
	<link>http://www.trirand.com/blog/?page_id=393/bugs/issues-when-specifying-rownum-as-a-string-in-4-5-2</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/issues-when-specifying-rownum-as-a-string-in-4-5-2/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Issues when specifying rowNum as a string in 4.5.2</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/issues-when-specifying-rownum-as-a-string-in-4-5-2#p29435</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/issues-when-specifying-rownum-as-a-string-in-4-5-2#p29435</guid>
        	        	<description><![CDATA[<p>Hello,</p>
</p>
<p>Also you can then get the rowNum this way</p>
<p><strong>parseInt(getGridParam(&#39;rowNum&#39;),10);</strong></p>
<p>In your previous case the returned value is always string since the select box values (rowList) are strings when they are builded in the select, not in the array.</p>
</p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Tue, 03 Sep 2013 19:37:04 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Issues when specifying rowNum as a string in 4.5.2</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/issues-when-specifying-rownum-as-a-string-in-4-5-2#p29434</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/issues-when-specifying-rownum-as-a-string-in-4-5-2#p29434</guid>
        	        	<description><![CDATA[<p>Helo,</p>
</p>
<p>Thanks for this investigation.</p>
<p>As from 4.5 we make the comaparations more strong&#160; - i.e we replace == with ===.</p>
<p>In your case if you set rowNum as string you should set rowList array values as string.</p>
</p>
<p>Regards</p></p>
]]></description>
        	        	<pubDate>Tue, 03 Sep 2013 19:30:41 +0300</pubDate>
        </item>
        <item>
        	<title>snobo on Issues when specifying rowNum as a string in 4.5.2</title>
        	<link>http://www.trirand.com/blog/?page_id=393/bugs/issues-when-specifying-rownum-as-a-string-in-4-5-2#p29433</link>
        	<category>Bugs</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/bugs/issues-when-specifying-rownum-as-a-string-in-4-5-2#p29433</guid>
        	        	<description><![CDATA[<p>In version 4.5.2 (don&#39;t know about other 4.5.x versions), if you specify rowNum as a string (like "100" instead of 100), the specified number of records per page (rowNum) is not selected in the rowList drop-down. The grid still governs the specified number of records correctly, but no OPTION of SELECT.ui-pg-selbox is marked as selected, which leads to confusion whenever rowNum is not equal to rowList[0]. See screenshot for demo.</p>
<p><a href="http://s10.postimg.org/6lunbpyrd/jq_Grid_row_Num.png"><img src="http://s10.postimg.org/6lunbpyrd/jq_Grid_row_Num.png" width="100"  class="sfimageleft spUserImage" alt="" /><img src="http://www.trirand.com/blog/wp-content/sp-resources/forum-themes/default/images/sp_Mouse.png" class="sfimageleft sfmouseleft" alt="Image Enlarger" /></a></p>
<p>I know, it would be natural to dismiss it as a non-essential problem and simply suggest specifying rowNum as an integer. However, in all my applications I remember user settings (like number of records per page, current page, etc) in cookies. So, the problem is actually caused by the fact that <strong>getGridParam(&#39;rowNum&#39;) returns a string</strong>, not the integer (so "100" instead of 100), and this is what I store in the cookies and read/apply for the grid on next page visit. Before 4.5.x, it was never a problem because rowNum could be specified with a string with no side-effects. Not anymore.</p>
]]></description>
        	        	<pubDate>Tue, 03 Sep 2013 13:23:48 +0300</pubDate>
        </item>
</channel>
</rss>