<?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: Forcing Keypress in cell</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/forcing-keypress-in-cell</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/forcing-keypress-in-cell/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>jpalac on Forcing Keypress in cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/forcing-keypress-in-cell#p9162</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/forcing-keypress-in-cell#p9162</guid>
        	        	<description><![CDATA[<p>Works perfectly - thank you!</p>
]]></description>
        	        	<pubDate>Tue, 01 Sep 2009 00:47:43 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Forcing Keypress in cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/forcing-keypress-in-cell#p9090</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/forcing-keypress-in-cell#p9090</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Try this</p>
<p>if (selRow == null &#38;&#38; recNum &#62; 0) {<br />&#160;&#160;&#160;&#160; jQuery(&#8221;#grid&#8221;).editCell(0, 0, <strong>true</strong>);<br />}</p>
</p>
<p>Best Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Mon, 31 Aug 2009 04:46:27 +0300</pubDate>
        </item>
        <item>
        	<title>jpalac on Forcing Keypress in cell</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/forcing-keypress-in-cell#p8949</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/forcing-keypress-in-cell#p8949</guid>
        	        	<description><![CDATA[<p>Hi,</p>
</p>
<p>I&#39;ve got a grid in edticell mode (using version 3.5) and when it loads I have the top row autoselected - doing that in the <span style="font-size: x-small;"></span></p>
<p>loadComplete event.</p>
<p>var selRow = jQuery("#grid").getGridParam(&#39;selrow&#39;);<br />var recNum = jQuery("#grid").getGridParam(&#39;reccount&#39;);</p>
<p>if (selRow == null &#38;&#38; recNum &#62; 0) {<br />&#160;&#160;&#160;&#160; jQuery("#grid").editCell(0, 0);<br />}</p>
</p>
<p>That works fine - highlights the first row for me and enables keyboard navigation on the cells. Now I&#39;d also like to make the first cell be selected, or even have it go to edit mode.</p>
<p>Currently when I load the grid with the above code I can then press the left arrow to select the first cell, and then enter to go into edit mode. Can I somehow pass those keypresses in automatically through code?</p>
<p>I have tried:</p>
<p>jQuery("#grid").trigger("keypress", [13]);</p>
</p>
<p>But that does not work.</p>
<p>Does anyone have any suggestions?</p>
<p>Thanks,</p>
</p>
<p>Jo</p></p>
]]></description>
        	        	<pubDate>Tue, 25 Aug 2009 02:12:18 +0300</pubDate>
        </item>
</channel>
</rss>