<?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: binding keydown event in online edit mode</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/binding-keydown-event-in-online-edit-mode</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/binding-keydown-event-in-online-edit-mode/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>JoyceZheng on binding keydown event in online edit mode</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/binding-keydown-event-in-online-edit-mode#p21052</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/binding-keydown-event-in-online-edit-mode#p21052</guid>
        	        	<description><![CDATA[<p>I have a grid like this</p>
<p>&#160;&#160;&#160; jQuery("#champDetail").jqGrid({<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; data: {},<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; height: 300,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; width: 800,<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colNames: [&#39;ID&#39;, &#39;Combination No&#39;, &#39;Qty&#39;, &#39;SMT Program&#39;, &#39;SMT Machine&#39;, &#39;Product Date&#39;, &#39;Tracking No&#39;],<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; colModel: [{ name: &#39;ID&#39;, width: 50 },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;CombinationNo&#39;, width: 120, sortable: false },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;QTY&#39;, width: 80, sortable: false, editable: true, editrules: { custom: true, custom_func: QTYCheck} },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;SMTProg&#39;, width: 120, sortable: false, editable: true },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;SMTMach&#39;, width: 120, sortable: false, editable: true },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;ProductDate&#39;, width: 120, sortable: false, editable: true },<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; { name: &#39;TrackingNo&#39;, width: 100, sortable: false, editable: true }<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ],.................</p>
<p>&#160; onCellSelect: function(rowid, colid) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; debugger;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if (colid == 3) {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var cm = jQuery("#champDetail").getRowData(rowid)<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; var temp = cm["QTY"]<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $("#temp").keydown(function() {<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; alert("")<br />&#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; }</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; },...................................</p>
<p>when select&#160;a cell,i want to bind a keydown event to the cell&#160;,</p>
<p>but i can&#39;t trigger the event.</p>
<p>what is the problem here?</p>
]]></description>
        	        	<pubDate>Wed, 01 Dec 2010 10:26:07 +0200</pubDate>
        </item>
</channel>
</rss>