<?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: Multiselect : how to pre-select row</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/multiselect-how-to-pre-select-row</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/multiselect-how-to-pre-select-row/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>mfej74 on Multiselect : how to pre-select row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/multiselect-how-to-pre-select-row#p18943</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/multiselect-how-to-pre-select-row#p18943</guid>
        	        	<description><![CDATA[<p>i found my problem<img class="spSmiley" style="margin:0" title="Laugh" src="/blog/wp-content/forum-smileys/sf-laugh.gif" alt="Laugh" /></p>
<p>i didn&#39;t put the function in loadcomplete.<img class="spSmiley" style="margin:0" title="Confused" src="/blog/wp-content/forum-smileys/sf-confused.gif" alt="Confused" /> So it was never called.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7126' value='Select Code' data-codeid='sfcode7126' /></p>
<div class='sfcode' id='sfcode7126'>, loadComplete: function(){ jQuery(&#34;#genDataGrid&#34;).jqGrid(&#34;setSelection&#34;,&#34;3&#34;);</div>
<p>stupid error&#160;<img class="spSmiley" style="margin:0" title="Embarassed" src="/blog/wp-content/forum-smileys/sf-embarassed.gif" alt="Embarassed" /></p>
</p>
<p>fred</p>
]]></description>
        	        	<pubDate>Tue, 03 Aug 2010 17:10:08 +0300</pubDate>
        </item>
        <item>
        	<title>mfej74 on Multiselect : how to pre-select row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/multiselect-how-to-pre-select-row#p18835</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/multiselect-how-to-pre-select-row#p18835</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I&#39;m back to the project.</p>
<p>Thanks for your help. SelectAll work correctly.</p>
<p>But i don&#39;t succeed with setSelection. I have tried like in the multiselect exemple from advanced, but nothing happens and i have no errors.</p>
<p>I tried : jQuery("#genDataGrid").setSelection(1);</p>
<p>or jQuery("#genDataGrid").jqGrid("setSelection","1&#8243;); to selet Id 1 but nothing happend.</p>
<p>I have the version 3.6 of JqGrid</p>
<p>I send data by json.</p>
<p>Probably the problem is comming from here.</p>
<p>I send the data like this :</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2497' value='Select Code' data-codeid='sfcode2497' /></p>
<div class='sfcode' id='sfcode2497'>&#160;&#160; &#160;&#160;&#160;&#160; $returnObj = new stdClass();<br />&#160;&#160;&#160; &#160;&#160;&#160;&#160; $returnObj-&#62;page = $pager-&#62;getCurrentPageNumber();<br />&#160;&#160; &#160;&#160;&#160; &#160;$returnObj-&#62;total = $pager-&#62;count();<br />&#160;&#160; &#160;&#160;&#160; &#160;$returnObj-&#62;records = $pager-&#62;getTotalItemCount();<br />&#160;&#160; &#160;&#160;&#160; &#160;$i=0;<br />&#160;&#160; &#160;&#160;&#160; &#160;foreach ($rows as $rowObject) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;$row = (array) $rowObject;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; $returnObj-&#62;rows[$i]=$row;<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160;&#160; $i++ ;<br />&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;&#160;&#160; &#160;return json_encode($returnObj);</div>
</p>
<p>And the option of JSONREADER are :</p>
<p>,jsonReader:{repeatitems:false,id:"0&#8243;} (id is always the 1st column of the row)</p>
</p>
<p>thanks for your help.</p>
<p>fred</p>
]]></description>
        	        	<pubDate>Wed, 28 Jul 2010 11:52:17 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Multiselect : how to pre-select row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/multiselect-how-to-pre-select-row#p17959</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/multiselect-how-to-pre-select-row#p17959</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>1. Please check the onSelectAll event</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:events" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....iki:events</a></p>
<p>2. check&#160; setSelection method</p>
<p><a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:methods" rel="nofollow" target="_blank"><a href="http://www.trirand.com/jqgridw" rel="nofollow">http://www.trirand.com/jqgridw</a>.....ki:methods</a></p>
<p>Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Wed, 16 Jun 2010 13:58:43 +0300</pubDate>
        </item>
        <item>
        	<title>mfej74 on Multiselect : how to pre-select row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/multiselect-how-to-pre-select-row#p17826</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/multiselect-how-to-pre-select-row#p17826</guid>
        	        	<description><![CDATA[<p>To avoid this problem, i try to use scroll. But i have again the same problems.<img class="spSmiley" style="margin:0" title="Confused" src="/blog/wp-content/forum-smileys/sf-confused.gif" alt="Confused" /></p>
<p>When you click on the "check box select all" , the onload is not called.</p>
<p>When the user has selected the row, i generate a new grid with only the selected row for confirmation. if the click on back, i want to turn back to previous grid with the line already selected.</p>
</p>
<p>Nobody have an idea ?&#160;<img class="spSmiley" style="margin:0" title="Wink" src="/blog/wp-content/forum-smileys/sf-wink.gif" alt="Wink" /></p>
<p>Thanks</p>
<p>Fred</p>
]]></description>
        	        	<pubDate>Wed, 09 Jun 2010 12:33:05 +0300</pubDate>
        </item>
        <item>
        	<title>mfej74 on Multiselect : how to pre-select row</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/multiselect-how-to-pre-select-row#p17789</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/multiselect-how-to-pre-select-row#p17789</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I need help for two actions.</p>
<p>i use multiselect on multiple page so i have two problem to resolved :</p>
<p>I have made a function which call an ajax to memorize or unmemorize the id selected with the function onSelectRow.</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit5828' value='Select Code' data-codeid='sfcode5828' /></p>
<div class='sfcode' id='sfcode5828'>&#160;&#160; &#160;&#160;&#160;&#160; $function .= &#39;,multiselect:true&#39;;<br />&#160;&#160; &#160;&#160;&#160;&#160; $function .= &#39;,onSelectRow : function(id){<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; jQuery.ajax({type: &#34;POST&#34;,<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; url: &#34;jqGridSelect.php&#34;,<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; data: &#34;idSelected=&#34;+ id<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;});<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;}&#39;;</div>
<p>But this function is not called when you click on check box which select or deselect all the row (in the header column). There is a way to that when you click on this check box, the function onSelectRow is called or there is way to disabled this checkbox.</p>
</p>
<p>And the second question is&#160; : how to "pre-select row" when you are in multiselect and json mapping. I want to preselect row, if the user plays with navigation button.</p>
</p>
<p>thanks for your help</p>
<p>fred</p>
]]></description>
        	        	<pubDate>Tue, 08 Jun 2010 13:32:41 +0300</pubDate>
        </item>
</channel>
</rss>