AmountFormat always returns the same value
I have created the amount format "AW.Formats.Number" but this always returns the static value though I can see the correct data in view source of the page. Please see below code and any help in resolving this is appreciated.
function setupGrid() {
var gridData = new Array();
var gridObj = new AW.UI.Grid;
// Set header array.
var gridHeader = ["Paid Loss Amount"] ;
//Sets the format for amount cells
setCellFormatToAmount(1);
//Formats the data in the grid
gridObj.setCellData(gridData);
//User enters the net premium ceded amount on this cell
//gridObj.setCellEditable(true,3);
// Write the grid to the page
document.write(gridObj);
}
//Sets the AW grid object, cell Format to Amount
function setCellFormatToAmount(col) {
//Currency format for Amount cell
var number = new AW.Formats.Number;
number.setTextFormat("$#,###.##");
gridObj.setCellFormat(number, col);
}
Thanks
function setupGrid() {
var gridData = new Array();
var gridObj = new AW.UI.Grid;
// Set header array.
var gridHeader = ["Paid Loss Amount"] ;
//Sets the format for amount cells
setCellFormatToAmount(1);
//Formats the data in the grid
gridObj.setCellData(gridData);
//User enters the net premium ceded amount on this cell
//gridObj.setCellEditable(true,3);
// Write the grid to the page
document.write(gridObj);
}
//Sets the AW grid object, cell Format to Amount
function setCellFormatToAmount(col) {
//Currency format for Amount cell
var number = new AW.Formats.Number;
number.setTextFormat("$#,###.##");
gridObj.setCellFormat(number, col);
}
Thanks
Rajendra
March 27,