<?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: ResetSelection is not a function</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/resetselection-is-not-a-function</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/resetselection-is-not-a-function/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>JudGer on ResetSelection is not a function</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/resetselection-is-not-a-function#p23282</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/resetselection-is-not-a-function#p23282</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>I&#39;ve an problem while trying to unselect all selected rows. I wrote a function which got called each time, I want the grid to unselect all selected rows. (There are multiple Grids on that page, which all need to be unselected)</p>
<p><input type='button' class='sfcodeselect' name='sfselectit9088' value='Select Code' data-codeid='sfcode9088' /></p>
<div class='sfcode' id='sfcode9088'>function unselectGrid() {<br />&#160;&#160;&#160; if($(&#39;table[id*=&#34;gridtable_&#34;]&#39;).length &#62; 0) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(&#39;table[id*=&#34;gridtable_&#34;]&#39;).jqgrid(&#39;resetSelection&#39;);<br />&#160;&#160;&#160; }<br />}</div>
<p>I also tried</p>
<p><input type='button' class='sfcodeselect' name='sfselectit2854' value='Select Code' data-codeid='sfcode2854' /></p>
<div class='sfcode' id='sfcode2854'>function unselectGrid() {<br />&#160;&#160;&#160; if($(&#39;table[id*=&#34;gridtable_&#34;]&#39;).length &#62; 0) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(&#39;table[id*=&#34;gridtable_&#34;]&#39;).resetSelection();<br />&#160;&#160;&#160; }<br />}</div>
<p>But I get always the same error message: jqgrid / resetSelection is not a function.</p>
<p>The selector is right, because</p>
<p><input type='button' class='sfcodeselect' name='sfselectit7074' value='Select Code' data-codeid='sfcode7074' /></p>
<div class='sfcode' id='sfcode7074'>function unselectGrid() {<br />&#160;&#160;&#160; if($(&#39;table[id*=&#34;gridtable_&#34;]&#39;).length &#62; 0) {<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; $(&#39;table[id*=&#34;gridtable_&#34;]&#39;).trigger(&#34;reloadGrid&#34;);<br />&#160;&#160;&#160; }<br />}</div>
<p>works fine.</p>
<p>Any ideas, why there seems to be no such functions? I use the Struts2-JQuery Plugin in the newest (3.0.1) Version. My head-tag looks like the following:</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1826' value='Select Code' data-codeid='sfcode1826' /></p>
<div class='sfcode' id='sfcode1826'>&#60;sj:head jqueryui=&#34;true&#34;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; compressed=&#34;false&#34;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ajaxhistory=&#34;false&#34;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; loadAtOnce=&#34;true&#34;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; locale=&#34;de&#34;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; jquerytheme=&#34;blitzer&#34; /&#62;</div>
</p>
<p>Regards<br />JudGer</p>
]]></description>
        	        	<pubDate>Mon, 23 May 2011 11:49:54 +0300</pubDate>
        </item>
</channel>
</rss>