<?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: JQGrid / DropDown - Cannot reproduce simple example</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-dropdown-cannot-reproduce-simple-example</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/jqgrid-dropdown-cannot-reproduce-simple-example/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>JQNovice on JQGrid / DropDown - Cannot reproduce simple example</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-dropdown-cannot-reproduce-simple-example#p23811</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-dropdown-cannot-reproduce-simple-example#p23811</guid>
        	        	<description><![CDATA[<p>From the original trirand page source code I downloaded and included into my html all the js and css files. This solved the problem. Probably it was a conflict between two js files.</p>
]]></description>
        	        	<pubDate>Wed, 29 Jun 2011 21:25:26 +0300</pubDate>
        </item>
        <item>
        	<title>JQNovice on JQGrid / DropDown - Cannot reproduce simple example</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/jqgrid-dropdown-cannot-reproduce-simple-example#p23810</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/jqgrid-dropdown-cannot-reproduce-simple-example#p23810</guid>
        	        	<description><![CDATA[<p>I&#39;m trying to reproduce a simple JQGrid example on my computer (this is the example: <a href="http://www.trirand.com/blog/jqgrid/jqgrid.html" rel="nofollow" target="_blank"><a href="http://www.trirand.com/blog/jq" rel="nofollow">http://www.trirand.com/blog/jq</a>.....qgrid.html</a> &#62;&#62; Row editing &#62;&#62; Input types)</p>
</p>
<p>When I visit the trirand site it works fine in my IE6, but when I&#39;m trying to reproduce the grid on my computer, the drop down list is resetting to the first item whenever I open it (when I select ARAMEX it resets to FEDEX, the first item in the drop down list). The feature works fine in Firefox.</p>
</p>
<p>Please help:</p>
<p><input type='button' class='sfcodeselect' name='sfselectit1825' value='Select Code' data-codeid='sfcode1825' /></p>
<div class='sfcode' id='sfcode1825'>&#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Strict//EN&#34; &#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#34;&#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>.....t;&#038;gt</a>;<br />&#60;html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml&#34;&#62;" rel="nofollow" target="_blank"></a><a href="http://www.w3.org/1999/xhtml&#34;&#038;gt" rel="nofollow" target="_blank"><a href="http://www.w3.org/1999/xhtml&#038;q" rel="nofollow">http://www.w3.org/1999/xhtml&#038;q</a>.....t;&#038;gt</a>;<br />&#60;head&#62;<br />&#160;&#160;&#160; &#60;title&#62;&#60;/title&#62;<br />&#160;&#160;&#160; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62;</p>
<p>&#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; media=&#34;screen&#34; href=&#34;themes/redmond/jquery-ui-1.8.2.custom.css&#34; /&#62;<br />&#60;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; media=&#34;screen&#34; href=&#34;css/ui.jqgrid.css&#34; /&#62;<br />&#160;<br />&#60;script src=&#34;js/jquery-1.5.2.min.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#60;script src=&#34;js/i18n/grid.locale-en.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;<br />&#60;script src=&#34;js/jquery.jqGrid.min.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62;</p>
<p>&#160;&#160; &#160;<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;<br />&#160;&#160;&#160; &#60;script type=&#34;text/javascript&#34;&#62;</p>
<p>$(document).ready(function() {<br />&#160;&#160; &#160;&#160;&#160; &#160;var lastsel2<br />jQuery(&#34;#rowed5&#34;).jqGrid({<br />&#160;&#160; &#160;datatype: &#34;local&#34;,<br />&#160;&#160; &#160;height: 250,<br />&#160; &#160;&#160;&#160; &#160;colNames:[&#39;ID Number&#39;,&#39;Name&#39;, &#39;Stock&#39;, &#39;Ship via&#39;,&#39;Notes&#39;],<br />&#160; &#160;&#160;&#160; &#160;colModel:[<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;id&#39;,index:&#39;id&#39;, width:90, sorttype:&#34;int&#34;, editable: true},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;name&#39;,index:&#39;name&#39;, width:150,editable: true,editoptions:{size:&#34;20&#34;,maxlength:&#34;30&#34;}},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;stock&#39;,index:&#39;stock&#39;, width:60, editable: true,edittype:&#34;checkbox&#34;,editoptions: {value:&#34;Yes:No&#34;}},<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;ship&#39;,index:&#39;ship&#39;, width:90, editable: true,edittype:&#34;select&#34;,editoptions:{value:&#34;FE:FedEx;IN:InTime;TN:TNT;AR:ARAMEX&#34;}},&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;{name:&#39;note&#39;,index:&#39;note&#39;, width:200, sortable:false,editable: true,edittype:&#34;textarea&#34;, editoptions:{rows:&#34;2&#34;,cols:&#34;10&#34;}}&#160;&#160; &#160;&#160;&#160; &#160;<br />&#160; &#160;&#160;&#160; &#160;],<br />&#160;&#160; &#160;onSelectRow: function(id){<br />&#160;&#160; &#160;&#160;&#160; &#160;if(id &#38;&#38; id!==lastsel2){<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery(&#39;#rowed5&#39;).jqGrid(&#39;restoreRow&#39;,lastsel2);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;jQuery(&#39;#rowed5&#39;).jqGrid(&#39;editRow&#39;,id,true);<br />&#160;&#160; &#160;&#160;&#160; &#160;&#160;&#160; &#160;lastsel2=id;<br />&#160;&#160; &#160;&#160;&#160; &#160;}<br />&#160;&#160; &#160;},<br />&#160;&#160; &#160;editurl: &#34;server.php&#34;,<br />&#160;&#160; &#160;caption: &#34;Input Types&#34;</p>
<p>});<br />var mydata2 = [<br />&#160;&#160; &#160;&#160;&#160; &#160;{id:&#34;12345&#34;,name:&#34;Desktop Computer&#34;,note:&#34;note&#34;,stock:&#34;Yes&#34;,ship:&#34;FedEx&#34;},<br />&#160;&#160; &#160;&#160;&#160; &#160;{id:&#34;23456&#34;,name:&#34;Laptop&#34;,note:&#34;Long text &#34;,stock:&#34;Yes&#34;,ship:&#34;InTime&#34;},<br />&#160;&#160; &#160;&#160;&#160; &#160;{id:&#34;34567&#34;,name:&#34;LCD Monitor&#34;,note:&#34;note3&#34;,stock:&#34;Yes&#34;,ship:&#34;TNT&#34;},<br />&#160;&#160; &#160;&#160;&#160; &#160;{id:&#34;45678&#34;,name:&#34;Speakers&#34;,note:&#34;note&#34;,stock:&#34;No&#34;,ship:&#34;ARAMEX&#34;},<br />&#160;&#160; &#160;&#160;&#160; &#160;{id:&#34;56789&#34;,name:&#34;Laser Printer&#34;,note:&#34;note2&#34;,stock:&#34;Yes&#34;,ship:&#34;FedEx&#34;},<br />&#160;&#160; &#160;&#160;&#160; &#160;{id:&#34;67890&#34;,name:&#34;Play Station&#34;,note:&#34;note3&#34;,stock:&#34;No&#34;, ship:&#34;FedEx&#34;},<br />&#160;&#160; &#160;&#160;&#160; &#160;{id:&#34;76543&#34;,name:&#34;Mobile Telephone&#34;,note:&#34;note&#34;,stock:&#34;Yes&#34;,ship:&#34;ARAMEX&#34;},<br />&#160;&#160; &#160;&#160;&#160; &#160;{id:&#34;87654&#34;,name:&#34;Server&#34;,note:&#34;note2&#34;,stock:&#34;Yes&#34;,ship:&#34;TNT&#34;},<br />&#160;&#160; &#160;&#160;&#160; &#160;{id:&#34;98765&#34;,name:&#34;Matrix Printer&#34;,note:&#34;note3&#34;,stock:&#34;No&#34;, ship:&#34;FedEx&#34;}<br />&#160;&#160; &#160;&#160;&#160; &#160;];<br />&#160;&#160; &#160;&#160;&#160; &#160;<br />for(var i=0;i &#60; mydata2.length;i++)<br />{<br />//alert(mydata2[i].id);<br />&#160;jQuery(&#34;#rowed5&#34;).jqGrid(&#39;addRowData&#39;,mydata2[i].id,mydata2[i]);<br />&#160;}</p>
<p>&#160;<br />&#160;});<br />&#160;&#160; &#160;<br />&#160;&#160;&#160; &#60;/script&#62;<br />&#60;/head&#62;</p>
<p>&#60;body&#62;</p>
<p>&#160;&#160; &#160;</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#60;table id=&#34;rowed5&#34;&#62;&#60;/table&#62;<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;<br />&#160;&#160; &#160;<br />&#60;/body&#62;<br />&#60;/html&#62;</p>
</div>
]]></description>
        	        	<pubDate>Wed, 29 Jun 2011 19:58:20 +0300</pubDate>
        </item>
</channel>
</rss>