<?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: setSelection bug?</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/setselection-bug</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/setselection-bug/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>c.mcpherson on setSelection bug?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/setselection-bug#p10697</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/setselection-bug#p10697</guid>
        	        	<description><![CDATA[<p>That was the trick. Thanks, and sorry if I missed previous posts on this.</p>
]]></description>
        	        	<pubDate>Wed, 14 Oct 2009 10:57:43 +0300</pubDate>
        </item>
        <item>
        	<title>markw65 on setSelection bug?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/setselection-bug#p10688</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/setselection-bug#p10688</guid>
        	        	<description><![CDATA[<p>You&#39;re setting the id as an integer, rather than a string (you want "5" rather than 5).</p>
</p>
<p>This was fixed a few weeks ago - although Im not sure its in the 3.5.3 release.</p>
</p>
<p>Mark</p></p>
]]></description>
        	        	<pubDate>Tue, 13 Oct 2009 18:08:03 +0300</pubDate>
        </item>
        <item>
        	<title>c.mcpherson on setSelection bug?</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/setselection-bug#p10687</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/setselection-bug#p10687</guid>
        	        	<description><![CDATA[<p>We&#39;re seeing a problem where normal row selection with the mouse causes an exception after programmatically setting the selection using setSelection. The following code illustrates the issue.</p>
</p>
<p>Are we missing something?</p>
</p>
<p><input type='button' class='sfcodeselect' name='sfselectit948' value='Select Code' data-codeid='sfcode948' /></p>
<div class='sfcode' id='sfcode948'>&#60;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&#038;gt" rel="nofollow" target="_blank"><a href="http://www.w3.org/TR/xhtml1/DT" rel="nofollow">http://www.w3.org/TR/xhtml1/DT</a>.....o;&#038;gt</a>;<br />&#60;html xmlns=&#8221;<a href="http://www.w3.org/1999/xhtml&#038;rdquo" rel="nofollow" target="_blank">http://www.w3.org/1999/xhtml&#038;rdquo</a>; &#62;<br />&#60;head&#62;<br />&#160;&#160;&#160; &#60;title&#62;&#60;/title&#62;<br />&#160;&#160;&#160; &#60;!&#8211;&#60;script type=&#8221;text/javascript&#8221; src=&#8221;depend/json2-min.js&#8221;&#62;&#60;/script&#62;&#8211;&#62;<br />&#160;&#160;&#160; &#60;script type=&#8221;text/javascript&#8221; src=&#8221;depend/jquery-1.3.2.min.js&#8221;&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;script type=&#8221;text/javascript&#8221; src=&#8221;depend/jQueryUI/jquery-ui-1.7.2.custom.min.js&#8221;&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;link rel=&#8221;Stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;depend/jQueryUI/smoothness/jquery-ui-1.7.2.custom.css&#8221; /&#62;<br />&#160;&#160;&#160; <br />&#160;&#160;&#160; &#60;script type=&#8221;text/javascript&#8221; src=&#8221;depend/jqGrid/grid.locale-en.js&#8221;&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;script type=&#8221;text/javascript&#8221; src=&#8221;depend/jqGrid/jquery.jqGrid.min.js&#8221;&#62;&#60;/script&#62;<br />&#160;&#160;&#160; &#60;link rel=&#8221;Stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;depend/jqGrid/ui.jqgrid.css&#8221; /&#62;<br />&#160;&#160;&#160; &#60;script type=&#8221;text/javascript&#8221; &#62;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#8221;#testGrid&#8221;).jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; datatype: &#39;local&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: 225,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; width: 915,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; multiselect: false,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; gridview: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; scrollRows: true,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;Index&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;Col1&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;Col2&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;Col3&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;Col4&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;Col5&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;Col6&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;Col7&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;Col8&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;Col9&#39;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#39;Col10&#39;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Index&#39;, index: &#39;Index&#39;, width: 100, sorttype: &#39;int&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Col1&#39;, index: &#39;Col1&#39;, width: 100, sorttype: &#39;string&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Col2&#39;, index: &#39;Col2&#39;, width: 100, sorttype: &#39;string&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Col3&#39;, index: &#39;Col3&#39;, width: 100, sorttype: &#39;string&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Col4&#39;, index: &#39;Col4&#39;, width: 100, sorttype: &#39;string&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Col5&#39;, index: &#39;Col5&#39;, width: 100, sorttype: &#39;string&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Col6&#39;, index: &#39;Col6&#39;, width: 100, sorttype: &#39;string&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Col7&#39;, index: &#39;Col7&#39;, width: 100, sorttype: &#39;string&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Col8&#39;, index: &#39;Col8&#39;, width: 100, sorttype: &#39;string&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Col9&#39;, index: &#39;Col9&#39;, width: 100, sorttype: &#39;string&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;Col10&#39;, index: &#39;Col10&#39;, width: 100, sorttype: &#39;string&#39; },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; ]</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; });</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; for (var i = 1; i &#60; 51; i++) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var item = { Index: i,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Col1: &#8220;Column 1&#8243;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Col2: &#8220;Column 2&#8243;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Col3: &#8220;Column 3&#8243;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Col4: &#8220;Column 4&#8243;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Col5: &#8220;Column 5&#8243;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Col6: &#8220;Column 6&#8243;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Col7: &#8220;Column 7&#8243;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Col8: &#8220;Column 8&#8243;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Col9: &#8220;Column 9&#8243;,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Col10: &#8220;Column 10&#8243;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; };</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#8221;#testGrid&#8221;).addRowData(item.Index, item);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $(&#8221;#testGrid&#8221;).setSelection(5, true);<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //Now selecting a row with the mouse causes an exception -&#62; $t.p.selrow.replace is not a function<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //Comment out the above line and row selection works perfectly<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //We observed this behavior in both IE7 and FireFox<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; );<br />&#160;&#160;&#160; &#60;/script&#62;<br />&#60;/head&#62;<br />&#60;body&#62;<br />&#60;table id=&#8221;testGrid&#8221;&#62;&#60;/table&#62;<br />&#60;/body&#62;<br />&#60;/html&#62;</p>
</div>
<p>Thanks!</p></p>
]]></description>
        	        	<pubDate>Tue, 13 Oct 2009 14:58:27 +0300</pubDate>
        </item>
</channel>
</rss>