String (html) converter class. Passes the string 'as is' without encoding the html control characters (", &, <, >) allowing html markup in the grid cells.
var obj = new AW.Formats.HTML;
clone | Creates an object clone. |
comparator | Returns comparator function. |
dataToText | Transforms the external data to the readable text. |
dataToValue | Transforms the external data to the native value type. |
init | Initializes the object. |
setErrorText | Sets the error text. |
setErrorValue | Sets the error value. |
setTimeout | Calls the function after the specified delay. |
textToData | Transforms the text to the external data format. |
textToValue | Transforms the text to the native value type. |
toString | Converts object to string. |
valueToData | Transforms the value to the external data format. |
valueToText | Transforms the value to the readable text. |
var myData = [
["<i>this is text</i>", "<i>this is html</i>"],
];
var text = new AW.Formats.String;
var html = new AW.Formats.HTML;
// grid control
var obj = new AW.UI.Grid;
obj.setCellData(myData);
obj.setCellFormat(text, 0); // text in the first column
obj.setCellFormat(html, 1); // html in the second column
obj.setColumnCount(2);
obj.setRowCount(1);
document.write(obj);
Formats/conversions overview, AW.System.Format (base class), AW.Formats.String, setCellFormat method