Parses the input text. This method may be used internally by the grid control to produce the cell value from the cell text property (after the cell text is modified).
In configurations where the display text is assigned directly to the cell text property, the cell value (obtained from textToValue()
call) is uses to sort the grid rows.
var value = format.textToValue(text);
text (string) - input text
parsed value
// create and configure date converter
var date = new AW.Formats.Date;
date.setTextFormat("mmm d, yyyy");
var text = "May 18, 2004";
var value = date.textToValue(text);
If the input text cannot be parsed successfully the method returns the error value which can be configured with setErrorValue()
call.
AW.System.Format methods: textToData, valueToData, setErrorValue
Formatting classes: number, string, html, date
Grid cell properties: text, value, data, format