:: Home >>

valueToData

Converts the value to the datasource format. This method may be used internally by the grid control to produce the cell data from the cell value property (after the cell value is modified).

Syntax

var data = format.valueToData(value);

Parameters

value (string/number/date) - cell value

Returns

data string in the datasource format

Examples

var date = new AW.Formats.Date;
var value = 1084834800000; // May 18, 2004
var data = date.valueToData(value);

See also

AW.System.Format methods: valueToText
Formatting classes: number, string, html, date
Grid cell properties: text, value, data, format

Comments

No comments yet.
Comments will appear on this page and in the main forum.

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5