:: Home >>

textToData

Parses the input text and converts it to the datasource format. This method may be used internally by the grid control to produce the cell data from the cell text property (after the cell text is modified).

Syntax

var data = format.textToData(text);

Parameters

text (string) - input text

Returns

data string in the datasource format

Examples

// create and configure date converter
var date = new AW.Formats.Date;
date.setTextFormat("mmm d, yyyy");

var text = "May 18, 2004";
var data = date.textToData(text);

See also

AW.System.Format methods: textToValue, valueToData
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