ag-grid-react

increase height of a specific row

房东的猫 提交于 2020-06-29 04:32:10
问题 Initially, all rows will have the same height of 50. When a cell is focused,if it has more content and requires more height, I need to increase the height of that particular cell. If that is not possible, atleast that entire particular row's height has to be increased. The remaining rows should not get effected. 回答1: I would make use of rowSelection api particularly the selected property of each rowNode . You can define getRowHeight in html [getRowHeight]="getRowHeight" and (selectionChanged)

AG Grid inserting rows with applyTransaction

♀尐吖头ヾ 提交于 2020-06-29 04:19:18
问题 Is there a way to insert rows at a specific index rather than at the end of the grid? Example would if I want to insert a row 10 rows from the top? Or in the middle? I did find an old ag grid method called insertItemAtIndex(index, [rows]); but this isn't working and says it's deprecated. Is there a way to do this with applyTransaction(transaction) ? 回答1: The RowDataTransaction interface has an optional addIndex property - export interface RowDataTransaction { /** deprecated */ addIndex?: