No Quick Edit with Custom CellEdit Template Cells

Posted by: on 6 February 2019, 11:56 am EST

  • Posted 6 February 2019, 11:56 am EST


    It seems like with cells that have a CellEdit template defined, Quick Edit mode is not available which means we can't use the down arrow to move down the cell without ending edit mode.

    Using this fiddle as an example:

    ID column has a CellEdit template. Sales doesn't not.

    1. Select a cell in the ID column.
    2. Type '99'.
    3. Press the down arrow. It stays in edit mode.
    4. Select a cell in the Sales column.
    5. Type '99'.
    6. Press the down arrow. It ends edit and moves the cell selection down one cell.

    How can we make '3.' to behave like '6.'?

  • Marked as Answer

    Replied 6 February 2019, 10:54 pm EST


    This is the default behaviour for FlexGrid to allow custom editors to handle keyEvents and perform any required operations.
    If you want the grid to allow quick edit for the custom editor, you may set forceFullEdit property on the stored column template to false and it should work.
    Please refer to the following code snippet:
    grid.columns[0]['$__cellTempl' + 'CellEdit'].forceFullEdit = false;

    You may also refer to the following updated sample:

  • Replied 7 February 2019, 5:54 am EST

    Thank you Sharad! This worked perfectly!

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels