Sigma.DataSet.Field
Index
Sigma
Sigma.Grid
Sigma.Column
Sigma.Column.Editor
Sigma.DataSet
Sigma.DataSet.Field
Sigma.Grid.PageInfo
Sigma.Grid.SortInfo
Sigma.Grid.FilterInfo
Sigma.Grid.Event
Sigma.Grid.EventTarget
Sigma.ToolFactroy
DataExchange
Instance Properties
initValue:function(record)
This function help developers define a formular cell.
record: Data record of this row.
returns: Value of the cell.
Sample
var dsConfig= { fields :[ {name : 'price', type: 'float' }, {name : 'units' , type: 'int' }, {name : 'totalPrice' , type: 'float', initValue : function(record){ return record['price'] * record['units']; } } ] };
name
String. Name of field.
type
String. Type of field. Could be "string"(default), "int", "float".