<?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: Problem with setSelection</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-setselection</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/problem-with-setselection/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Armorfist on Problem with setSelection</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-setselection#p5381</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-setselection#p5381</guid>
        	        	<description><![CDATA[<p>Hello tony,</p>
<p>Just sent you an email. Many thanks for your help.</p>
<p>Forgot to mention in the mail that if i use the onPaging event with the same exact code as the gridComplete event and combine them both in the grid, the system works fine.</p>
</p>
<p>Thanks</p>
<p>Frederico</p>
]]></description>
        	        	<pubDate>Mon, 16 Mar 2009 17:53:21 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Problem with setSelection</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-setselection#p5362</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-setselection#p5362</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>If this is the case, then the only thing that I see is: What is going when you loop throught the records (for statements in the event). Could you please use the FireBug to see what is going here. If possible send me a link to the problem - tony at trirand dot com</p>
</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 16 Mar 2009 05:53:17 +0200</pubDate>
        </item>
        <item>
        	<title>Armorfist on Problem with setSelection</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-setselection#p5334</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-setselection#p5334</guid>
        	        	<description><![CDATA[<p>Hello tony,</p>
<p>Neither is true. Thats the strange part. Here&#39;s an example of the output of both arrays:</p>
<p>selected_jq_ids:</p>
<p>298,295,290,289,288,287,286,285,284,283</p>
<p>getDataIDs():</p>
<p>298,295,290,289,288,287,286,285,284,283,282,281,280,279,278,<br />277,276,275,274,273,272,271,270,269,268,267,266,265,264,263</p>
<p>It doesnt select any of them. But this ONLY happens when changing the number of rows in the select box. If i change page or do searches it works fine.</p>
<p>Thanks,</p>
<p>Frederico</p>
]]></description>
        	        	<pubDate>Fri, 13 Mar 2009 12:02:10 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Problem with setSelection</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-setselection#p5331</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-setselection#p5331</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Thanks.</p>
<p>In your case this mean that either the <strong>selected_jq_ids</strong> is null or</p>
<p>the array returned from</p>
<p>currentGridIds = jQuery<span class="br0">(</span><span class="st0">"#grid_id"</span><span class="br0">)</span>.<span class="me1">getDataIDs</span><span class="br0">(</span><span class="br0">)</span> is emty</p>
<p>or at least the data from this array does not match those from&#160; cockie.</p>
<p>Could you please tell me which one is true? I see something that maybe should be added whe we use input page element and select box to change the number of records.</p>
<p>Thanks</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Fri, 13 Mar 2009 10:57:30 +0200</pubDate>
        </item>
        <item>
        	<title>Armorfist on Problem with setSelection</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/problem-with-setselection#p5313</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/problem-with-setselection#p5313</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I&#39;m trying to programatically select rows with setSelection, but i&#39;m having a problem. The code is below:</p>
<p><a href="http://pastebin.com/m2120e557" rel="nofollow" target="_blank">http://pastebin.com/m2120e557</a></p>
<p>I have a cookie that contains the ID&#39;s of all selected rows, so i loop to each visible row to match the id with the cookie to see if its selected, if its true it will call setSelection function to select the row.</p>
<p>This works fine when changing page and searching, but if i change the number of rows per page in the nav bar, it doesnt select any rows, i then click refresh and it selects them properly. I noticed that if i include the same code with onPaging event and use both events at the same time it solves this problem, but it sucks performance wise because it does alot of loops.</p></p>
]]></description>
        	        	<pubDate>Fri, 13 Mar 2009 08:15:25 +0200</pubDate>
        </item>
</channel>
</rss>