Immediate Focus Receiving of Widgets Upon Cell Switching During Data Entry by JS

  • Last update:December 22, 2025
  • Overview

    Application Scenario

    In the data entry mode, when you press the shortcut key Tab to switch to the next column, or press Enter to switch to the next row, the active cell will be highlighted with thick black borders. Although you can continue data entry, the visual experience will be poor. How can a widget immediately receive the focus after you switch between cells?

    1.1应用场景.png

    Implementation Effect

    The final effect is as follows: After you switch between cells using Tab or Enter, the widget in the cell of the next column or next row immediately receives focus.

    1.2 实现效果.png

    Example

    Template Preparation

    Design the cells as follows. Add text widgets for the cells in the second row, and set Expansion Direction to Vertical for cell A2.

    2.1模版准备.png

    Loading End Event Adding

    Choose Template > Web Attribute, click Data Entry Setting, select Set for This Template Separately from the Following Settings: drop-down box, and then add a Loading End event.

    2.2 添加加载结束事件.png

    The JS code is as follows:

    contentPane.setEditOnMove(true);

    Effect Preview

    Click Save, and click Data Entry Preview. The effect is the same as that shown in the section "Implementation Effect."

    Template Download

    Attachment List


    Theme: Data Entry
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy