Search
GridModel.columnEditable Method
See Also
 






Gets a value, indicating whether the cells in the specified column can be edited.

Namespace: MindFusion.DataViews
File: GridModel.js

 Syntax

JavaScript  Copy Code

function columnEditable (column)

 Parameters

column

Number. The column index.

 Return Value

Boolean. True if the cells in this column can be edited, otherwise false.

 Example

The following code checks if the first column of a grid is editable, and if so, adds a new row:

JavaScript  Copy Code

if( grid.columnEditable(0) )
{
   var dataList = [0, "Colorado Eagles", "12", new Date()];

   grid.model.addRow(dataList, 0);
}

 See Also