Adding a new row next when click on a row in flexGrid

Posted by: jianing.huang on 2 October 2020, 9:58 am EST

  • Posted 2 October 2020, 9:58 am EST

    Hi,

    I need to add a new row to the bottom of a flex grid when user double clicks on the last row. There should be an empty row when the grid is rendered if the grid has no data initially. A new row template shall be generated below when user double clicks on the first row to enter data.

    I understand there is a newRowAtTop property for a flexgrid, however this may just add a new row at the top of the grid, not to the bottom of the grid.

    Appreciate any help.

  • Posted 5 October 2020, 8:50 am EST

    Hi Jenny,

    You can use the allowAddNew property of the FlexGrid. Setting its value to true will create an empty row at the bottom even if there is no data on the grid. When you will double-click any cell of this row, a new will be added at the last position.

    https://www.grapecity.com/wijmo/api/classes/wijmo_grid.flexgrid.html#allowaddnew

    Also, the newRowAtTop property only adds the template to the top of the grid but the row will be added at the last position only.

    Regards,

    Ashwin

Need extra support?

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

Learn More

Forum Channels