Gets or sets a value, indicating whether inplace editing is enabled.
Namespace: MindFusion.DataViews
File: Grid.js
JavaScript Copy Code |
---|
get allowEdit() {} |
Boolean. True if inplace editing is enabled, otherwise false.
The following code calls the focusCell method to bring the cell to be edited in focus and uses the allowEdit property to make the cell editable:
JavaScript Copy Code |
---|
grid.rowCommand.addEventListener(function (sender, args) var editRow = args.row; grid.refreshRows(editRow); grid.allowEdit = true; grid.focusCell(editRow, 0); |