Search
Grid.allowEdit Property
See Also
 






Gets or sets a value, indicating whether inplace editing is enabled.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

get allowEdit() {}

 Property Value

Boolean. True if inplace editing is enabled, otherwise false.

 Example

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)
{
    if (args.commandName == "Edit")
    {

    var editRow = args.row;
         initialData = Object.assign({}, grid.model.getRowData(editRow));

         grid.refreshRows(editRow);

         grid.allowEdit = true;
         grid.allowCellSelect = true;

         grid.focusCell(editRow, 0);
     }
}

 See Also