ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: hyh888 on October 15, 2021, 12:53:45 pm

Title: Can we add new row with keyboard?
Post by: hyh888 on October 15, 2021, 12:53:45 pm
In sample, if we want to add a new row, we have to click the "New Product" button  or use context menu. Can we use TAB(when cursor is in last editable cell) or DOWN(when cursor is in last editable row) keys of keyboard to add new row quickly?
Title: Re: Can we add new row with keyboard?
Post by: paramvir on October 15, 2021, 10:49:58 pm
this feature is not inbuilt. It can be custom written by  listening to keydown event in cell and call addRow API method

https://paramquery.com/pro/api#event-beforeCellKeyDown

https://paramquery.com/pro/api#method-addRow
Title: Re: Can we add new row with keyboard?
Post by: hyh888 on October 16, 2021, 04:19:14 pm
It will be a very useful feature, if it is inbuilt.