First cell focus in when adding new row using [allowAddNew]="true"

Posted by: pmithilesh on 16 November 2023, 12:01 pm EST

    • Post Options:
    • Link

    Posted 16 November 2023, 12:01 pm EST - Updated 16 November 2023, 12:07 pm EST

    Hi,

    I have simple grid with few inline edits like combo boxes and have adding row functionality

    [allowAddNew]=“true” .when i click on row i want to fall back to first column with focus in as this is a required field but issue is my cell is still open for edit like in image i posted

    Thank you

  • Posted 16 November 2023, 7:54 pm EST

    Hi Mithilesh,

    As per our understanding, you are using Wijmo FlexGrid control with allowAddNew set to true, and want to start editing the first column’s cell whenever a new row is added by double-clicking any of the cells in the new row template, if so, then you can handle the ‘rowAdded’ event of the flexGrid and start editing the first column using the ‘startEditing’ method of the flexGrid.

    Please refer to the following sample demonstrating the same - https://stackblitz.com/edit/js-r8f3pg?file=index.js

    Note: Please try to post cases regarding Wijmo controls on the Wijmo forum, as there is a possibility that the cases posted on the forums of our other products could be missed and remain unanswered.

    Here is the link to the Wijmo Forum - https://developer.mescius.com/forums/wijmo

    Regards

  • Posted 20 November 2023, 11:59 am EST

    thank you for the reply and solution did work

Need extra support?

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

Learn More

Forum Channels