<?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: Scroll and multiselect</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/scroll-and-multiselect</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/scroll-and-multiselect/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Scroll and multiselect</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/scroll-and-multiselect#p15785</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/scroll-and-multiselect#p15785</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Sorry this is discussed here, for now it is not planed to be changed. We should apply some huge logic.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 17 Mar 2010 21:25:14 +0200</pubDate>
        </item>
        <item>
        	<title>SimonL on Scroll and multiselect</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/scroll-and-multiselect#p15751</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/scroll-and-multiselect#p15751</guid>
        	        	<description><![CDATA[<p>Hi Tony,</p>
</p>
<p>I am now making use of gridComplete as you suggested. As part of my grid definition I have the following:&#160;</p>
</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(gridSelector).jqGrid({</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; .......</p>
<p>&#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; selectAll = status;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; },<br />&#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; if (selectAll) {</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; rows = $(gridSelector).jqGrid(&#39;getRowData&#39;);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(gridSelector).jqGrid(&#39;resetSelection&#39;);<br />&#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; $(gridSelector).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; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; // Multiselect check box on&#160; the grid header<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#39;#cb_g_artist&#39;).attr(&#39;checked&#39;, true);</p>
<p>&#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>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ....</p>
<p>If the user checks the "Multiselect" check box on the grid header I set a flag: selectAll = status, which sets it to true if the checkbox is ticked, otherwise false. Then in the gridComplete function as you can see I check this flag and if its true, I unselect anything that was already selected, then reselect everything. This works well - the user has the illusion that as they scroll through the grid everything is selected.</p>
<p>One problem is if the user unselects a row, the "Select All" check box on the grid header remains checked - it should be unchecked at this point. If I use $(&#39;#cb_g_artist&#39;).attr(&#39;checked&#39;, false) in the onSelectRow event, it will set the multiselect checkbox to unchecked, but all rows will be unselected as well which is not what I want.</p>
</p>
<p>So if any row is deselected, how do I set the multiselect checkbox to unchecked, without unselecting all the rows?</p>
</p>
<p>Regards,</p>
<p>Simon</p>
]]></description>
        	        	<pubDate>Tue, 16 Mar 2010 14:05:18 +0200</pubDate>
        </item>
        <item>
        	<title>tony on Scroll and multiselect</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/scroll-and-multiselect#p15731</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/scroll-and-multiselect#p15731</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>To be a honest no. You can maybe use gridComplete to select it, but automatically no.</p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 15 Mar 2010 21:16:40 +0200</pubDate>
        </item>
        <item>
        	<title>tjones1105 on Scroll and multiselect</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/scroll-and-multiselect#p15633</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/scroll-and-multiselect#p15633</guid>
        	        	<description><![CDATA[<p>It&#39;s funny because I just logged in to the forums to ask the same thing...</p>
</p>
<p>Tom</p>
]]></description>
        	        	<pubDate>Thu, 11 Mar 2010 23:41:13 +0200</pubDate>
        </item>
        <item>
        	<title>SimonL on Scroll and multiselect</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/scroll-and-multiselect#p15624</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/scroll-and-multiselect#p15624</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I have set scroll: true and multiselect: true on my grid. When miultiselect is set to true and I tick the check box at the top of the column, then any rows visible in the grid are automatically selected. If you then scroll and more rows appear in the grid they are not selected. I can understand why, because of course as you scroll there is an ajax request back to the server to fetch more rows.</p>
<p>But I&#39;m trying to acheive a scenario where if you click the checkbox at the top of the row then all rows are selected (and a getGridParam(&#39;selarrow&#39;) would return all rows. Is this possible?</p>
</p>
<p>Regards,</p>
<p>Simon</p>
]]></description>
        	        	<pubDate>Thu, 11 Mar 2010 16:21:58 +0200</pubDate>
        </item>
</channel>
</rss>