<?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 additional keyboard events in Cell Editing mode</title>
	<link>http://www.trirand.com/blog/?page_id=393/help/binding-additional-keyboard-events-in-cell-editing-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-additional-keyboard-events-in-cell-editing-mode/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>tony on Binding additional keyboard events in Cell Editing mode</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/binding-additional-keyboard-events-in-cell-editing-mode#p30941</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/binding-additional-keyboard-events-in-cell-editing-mode#p30941</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Â </p>
<p>Thanks for the feedback and the code posted.</p>
<p>Â </p>
<p>Regards</p>
]]></description>
        	        	<pubDate>Mon, 11 Aug 2014 14:46:18 +0300</pubDate>
        </item>
        <item>
        	<title>poff on Binding additional keyboard events in Cell Editing mode</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/binding-additional-keyboard-events-in-cell-editing-mode#p30904</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/binding-additional-keyboard-events-in-cell-editing-mode#p30904</guid>
        	        	<description><![CDATA[<blockquote>
<p>
<strong>tony said </strong></p>
<p>Currently you can look at GridNav method (which do this job in celledit mode) and make the needed changes for pageup pagedown keys.</p>
</blockquote>
<p>Thank you!</p>
<p>In case someone else is searching for a way to do this, here is what I ended up with, added to the switch statement inside GridNav function:</p>
<p>case 36: // Home - First page<br />
Â  var pager = $($t).jqGrid('getGridParam', "pager");<br />
Â  var pageÂ  = $($t).jqGrid('getGridParam', "page");</p>
<p>Â  if (pager &#38;&#38; page !== 1) {<br />
Â Â Â  $($t).jqGrid('setGridParam', { "page": 1 }).trigger("reloadGrid");<br />
Â  }<br />
break;<br />
case 34: // Page Down - Previous page<br />
Â  var pager = $($t).jqGrid('getGridParam', "pager");<br />
Â  var pageÂ  = $($t).jqGrid('getGridParam', "page");</p>
<p>Â  if (pager &#38;&#38; page &#62; 1) {<br />
Â Â Â  $($t).jqGrid('setGridParam', { "page": page - 1 }).trigger("reloadGrid");<br />
Â  }<br />
break;<br />
case 33: // Page Up - Next page<br />
Â  var pagerÂ Â Â  = $($t).jqGrid('getGridParam', "pager");<br />
Â  var pageÂ Â Â Â  = $($t).jqGrid('getGridParam', "page");<br />
Â  var lastpage = $($t).jqGrid('getGridParam', "lastpage");</p>
<p>Â  if (pager &#38;&#38; page &#60; lastpage) {<br />
Â Â Â  $($t).jqGrid('setGridParam', { "page": page + 1 }).trigger("reloadGrid");<br />
Â  }<br />
break;<br />
case 35: // End - Last page<br />
Â  var pagerÂ Â Â  = $($t).jqGrid('getGridParam', "pager");<br />
Â  var pageÂ Â Â Â  = $($t).jqGrid('getGridParam', "page");<br />
Â  var lastpage = $($t).jqGrid('getGridParam', "lastpage");</p>
<p>Â  if (pager &#38;&#38; page !== lastpage) {<br />
Â Â Â  $($t).jqGrid('setGridParam', { "page": lastpage }).trigger("reloadGrid");<br />
Â  }<br />
break;</p>
]]></description>
        	        	<pubDate>Tue, 29 Jul 2014 16:39:28 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Binding additional keyboard events in Cell Editing mode</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/binding-additional-keyboard-events-in-cell-editing-mode#p30903</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/binding-additional-keyboard-events-in-cell-editing-mode#p30903</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>I understand and this time is very easy to answer.</p>
<p>Since you are in celledit mode you are in a table cells.</p>
<p>Keydown by default can not be applied to table cells.</p>
<p>In jqGrid we use a trick to create a hidden div inside grid and make a keydown to it.</p>
<p>Currently you can look at GridNav method (which do this job in celledit mode) and make the needed changes for pageup pagedown keys.</p>
<p>Â </p>
<p>Kind Regards</p>
<p>Tony</p>
]]></description>
        	        	<pubDate>Tue, 29 Jul 2014 14:35:40 +0300</pubDate>
        </item>
        <item>
        	<title>poff on Binding additional keyboard events in Cell Editing mode</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/binding-additional-keyboard-events-in-cell-editing-mode#p30901</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/binding-additional-keyboard-events-in-cell-editing-mode#p30901</guid>
        	        	<description><![CDATA[<blockquote>
<p><strong>tony said </strong><br />
Can you please let me know what is your goal?</p>
<p> What you try to do - just let me know about the problem you should resolve.</p>
</blockquote>
<p>I would like to add the possibility for the user to navigate through grid pages with Page Up and Page Down keys. I found instructions on how to do this on <a href="http://stackoverflow.com/a/19131868" target="_blank">this stack overflow answer</a>, but the keydown event does not seem to fire in cell editing mode.</p>
]]></description>
        	        	<pubDate>Tue, 29 Jul 2014 11:41:57 +0300</pubDate>
        </item>
        <item>
        	<title>tony on Binding additional keyboard events in Cell Editing mode</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/binding-additional-keyboard-events-in-cell-editing-mode#p30900</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/binding-additional-keyboard-events-in-cell-editing-mode#p30900</guid>
        	        	<description><![CDATA[<p>Hello,</p>
<p>Â </p>
<p>Can you please let me know what is your goal?</p>
<p>What you try to do - just let me know about the problem you should resolve.</p>
<p>Â </p>
<p>Kind Regards</p>
]]></description>
        	        	<pubDate>Mon, 28 Jul 2014 21:04:56 +0300</pubDate>
        </item>
        <item>
        	<title>poff on Binding additional keyboard events in Cell Editing mode</title>
        	<link>http://www.trirand.com/blog/?page_id=393/help/binding-additional-keyboard-events-in-cell-editing-mode#p30891</link>
        	<category>Help</category>
        	<guid isPermaLink="true">http://www.trirand.com/blog/?page_id=393/help/binding-additional-keyboard-events-in-cell-editing-mode#p30891</guid>
        	        	<description><![CDATA[<p>Hi,</p>
<p>Is it somehow possible to bind new keyboard events to the grid in <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki:cell_editing" target="_blank">Cell Editing</a> mode, in addition to those that are predefined for key navigation? I've tried to use the bindKeys method, and binding a keydown event to the grid, but neither of them seem to work. Both of them work fine when cell editing is not active though.</p>
<p>Am I missing something here, or is it not possible to bind additional keyboard events when using cell editing?</p>
<p>Thank you for the excellent grid plugin!</p>
]]></description>
        	        	<pubDate>Fri, 25 Jul 2014 15:56:38 +0300</pubDate>
        </item>
</channel>
</rss>