<?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: Pre-selecting rows in a multiselect grid</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/pre-selecting-rows-in-a-multiselect-grid</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/pre-selecting-rows-in-a-multiselect-grid/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Pre-selecting rows in a multiselect grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pre-selecting-rows-in-a-multiselect-grid#p17352</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pre-selecting-rows-in-a-multiselect-grid#p17352</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I&#39;m not sure if I understand right the problem, but you can save the selection in variable (multiselect option of the grid should be enabled and then select it again using setSelection method.</p>
<p>It is important to note that you should save the state of the selected rows this way.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit6733' value='Select Code' data-codeid='sfcode6733' /></p>
<div class='sfcode' id='sfcode6733'>
<p>to get the selection</p>
<p>var selectedrows = $.extend([], $(&#34;#grid&#34;).jqGrid(&#39;getGridParam&#39;, &#39;selarrrow&#39;));</p>
<p>to select it again</p>
<p>for(var i=0;i&#60;selectedrows;i++) {</p>
<p>$(&#34;#grid&#34;).jqGrid(&#39;setSelection&#39;,selectedrows[i]);</p>
<p>}</p>
</div>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Thu, 20 May 2010 19:05:47 +0300</pubDate>
        </item>
        <item>
        	<title>johnr on Pre-selecting rows in a multiselect grid</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/pre-selecting-rows-in-a-multiselect-grid#p17335</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/pre-selecting-rows-in-a-multiselect-grid#p17335</guid>
        	        	<description><![CDATA[<p>I want to use a jqgrid in a form to select one or more items from a potentially extensive list. A multiselect menu is unacceptable because of the length and the need to display a lot of information about the items to be selected. The form is re-entrant, so I need to be able to select the items that were selected the last time that the form was filled out. This is logically equivalent to specifying the selected option(s) in a select tag.&#160;</p>
<p>Please forgive me if I have overlooked the answer in the documentation or in my search of the forums. It just seems that this should be fairly simple to do. BTW, you&#39;ve done a great job providing a quality product.</p>
]]></description>
        	        	<pubDate>Thu, 20 May 2010 16:08:36 +0300</pubDate>
        </item>
</channel>
</rss>