Hotkey for Insert button and TAB for OK/Cancel

6 posts, 2 answers
  1. Leos
    Leos avatar
    57 posts
    Member since:
    Jul 2010

    Posted 02 Aug 2011 Link to this post

    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
  2. Answer
    Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1128 posts

    Posted 02 Aug 2011 Link to this post

    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 >>
  3. DevCraft banner
  4. Leos
    Leos avatar
    57 posts
    Member since:
    Jul 2010

    Posted 02 Aug 2011 Link to this post

    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 ?
  5. Answer
    Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1128 posts

    Posted 03 Aug 2011 Link to this post

    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 >>
  6. Leos
    Leos avatar
    57 posts
    Member since:
    Jul 2010

    Posted 05 Aug 2011 Link to this post

    Thanks, we be nice have this behavior as default (or with possibility to allow it with XAML only),
    Leos
  7. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1128 posts

    Posted 05 Aug 2011 Link to this post

    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 >>
Back to Top
DevCraft banner