﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebDesktop - Force Arrow Key to act the same in Edit Mode </title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Force-Arrow-Key-to-act-the-same-in-Edit-Mode/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Force Arrow Key to act the same in Edit Mode </title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Force-Arrow-Key-to-act-the-same-in-Edit-Mode/</link><pubDate>Mon, 01 Nov 2010 22:37:38 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;You can get all the keycode by calling alert at OnEditKeyDown event.&lt;br /&gt;alert(event.keyCode);&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>Force Arrow Key to act the same in Edit Mode </title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Force-Arrow-Key-to-act-the-same-in-Edit-Mode/</link><pubDate>Mon, 01 Nov 2010 09:47:47 GMT</pubDate><dc:creator>dmcgoff</dc:creator><description>&lt;p&gt;Thanks Handy - I will try that.&lt;/p&gt;
&lt;p&gt;Do you know the KeyCode for the various arrow keys (up, down, left, right)?&lt;/p&gt;
&lt;p&gt;This is how Excel works - the arrow key always moves you from cell to cell.&lt;/p&gt;</description></item><item><title>Force Arrow Key to act the same in Edit Mode </title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Force-Arrow-Key-to-act-the-same-in-Edit-Mode/</link><pubDate>Mon, 01 Nov 2010 04:42:34 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hello Dave,&lt;/p&gt;
&lt;p&gt;I think you can do this scenario. You need to validate it in OnEditKeyDown clientside event. check the keycode and ExitEditmode, then select nextcell and activate the edit.&lt;/p&gt;
&lt;p&gt;Here is the code to exit edit mode and select and activate edit.&lt;/p&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;
&lt;p&gt;&lt;strong&gt;grid.ExitEdit(1, 0, 0); &lt;/strong&gt;&lt;/p&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;
&lt;p&gt;&lt;strong&gt;grid.GetSelectedObject().ToRowObject().GetCells()[index].Select();&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;window.setTimeout(&lt;/strong&gt;&lt;strong&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;function&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; () { grid.GetSelectedObject().ToRowObject().GetCells()[index].ActivateEdit(); }, 300);&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;&lt;span style="font-family: consolas; color: #0000ff; font-size: 13px"&gt;function&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt; () { grid.GetSelectedObject().ToRowObject().GetCells()[index].ActivateEdit(); }, 300);&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;
&lt;p&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;However, this scenario is not recommended. Use arrow keyboard to go next cell in edit is already change its behaviour. User would hardly to type in certain letter in edit mode. They can navigate into the letter by using mouse which is a little weird in edit text.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;&lt;span style="font-family: consolas; font-size: 13px"&gt;Regards,&lt;br /&gt;Handy&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
</description></item><item><title>Force Arrow Key to act the same in Edit Mode </title><link>http://www.intersoftsolutions.com/Community/WebDesktop/Force-Arrow-Key-to-act-the-same-in-Edit-Mode/</link><pubDate>Sat, 30 Oct 2010 23:22:56 GMT</pubDate><dc:creator>dmcgoff</dc:creator><description>&lt;p&gt;I am using the Batch Update for WebGrid&lt;/p&gt;
&lt;p&gt;I would like the Arrow key to work the same in Edit mode as it does when not in edit mode.  I would like my user to use the arrow key to move from cell to cell in edit mode - when they leave a cell, that edit should be added to the list of changes, and the user should move to the cell that the arrow points to - that cell should come up in Edit mode.&lt;/p&gt;
&lt;p&gt;How can I do this?&lt;/p&gt;</description></item></channel></rss>