This is a migrated thread and some comments may be shown as answers.

[Solved] Hotkey for Insert button and TAB for OK/Cancel

5 Answers 171 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Leos
Top achievements
Rank 1
Leos asked on 02 Aug 2011, 11:34 AM
Hi,
I am trying to build form for fast entering some data.

For example, my form:
ID (TextBox, auto generated and readonly)
SECTION (RadComboBox)
DATE(RadDatePicker)
NAME(RadWatermarkTextBox)
COUNT(RadMaskedNumericInput)
PRICE(RadMaskedCurrencyInput)

My plan is to use something as:
CTRL+I  .. to fire insert
TAB .. to skip readonly ID
ARROW_DOWN TAB  .. to select some item from combobox
1/8/2011 TAB .. to enter date
SomeText TAB  .. to enter some name
11 TAB TAB .. to enter 11 pcs
22 TAB TAB  .. to enter 22 USD
TAB .. to skip to OK button
ENTER .. to Commit record
... and again ...

There are two problems:
1) I dont know how to specify hotkey to fire "Insert"
2) Last TAB does not skip to button "OK" so user must look for mouse and button and click.

How to do it?
Thanks you very much.
Leos

5 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Ivanov
Telerik team
answered on 02 Aug 2011, 02:29 PM
Hi Leos,

I have prepared a simple example project that accomplishes you requirements. It is attached for your reference. However, since most of the "Ctrl +" combinations are predefined in the majority of the browsers, it is rarely a good idea to use them. In my project I am using Shift + I instead.

Kind regards,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
Leos
Top achievements
Rank 1
answered on 02 Aug 2011, 04:29 PM
Excellent, only one question.
When leaving last TextBox I need to press TAB 3 times. First TAB hides focus of TextBox and then 2 more TABs must be pressed to have OK button focused. Where is focus after leaving last TextBox ?
0
Accepted
Ivan Ivanov
Telerik team
answered on 03 Aug 2011, 08:04 AM
Hi Leos,

Actually, in RadDataForm's template there are several other TabStops except for the field editors and the buttons. I have updated my project, in order to make the tab navigation skip them. Please, refet ro the attached version.

Greetings,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
Leos
Top achievements
Rank 1
answered on 05 Aug 2011, 10:43 AM
Thanks, we be nice have this behavior as default (or with possibility to allow it with XAML only),
Leos
0
Ivan Ivanov
Telerik team
answered on 05 Aug 2011, 11:28 AM
Hi Leos,

Yes you are right. We will modify the navigation in our future releases of RadControls.

Regards,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
Tags
DataForm
Asked by
Leos
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Leos
Top achievements
Rank 1
Share this question
or