3.2.0

Sorting column after edit data

Hi,

I'm loading data from XML to grid, then change data in cell and try to sort column where the changed data stores and find that sorting not working properly... what i need to do to make sort properly ?

tried to set cell format again and refresh but this not help.

here initialisation of grid



var obj = new AW.Grid.Extended;
var table = new AW.XML.Table;
var str = new AW.Formats.String;
var num = new AW.Formats.Number;
var int = new AW.Formats.Number;
var int1 = new AW.Formats.Number;
var price = new AW.Formats.Number;
var ddate = new AW.Formats.Date;
price.setTextFormat("$ #,###.##");
num.setTextFormat("#,###.##");
int.setTextFormat("###.");
int1.setTextFormat("#,###.");
ddate.setDataFormat("ISO8601");
ddate.setTextFormat("mm/dd/yyyy");
table.setURL("data.xml");
table.request();
var myHeaders = ["ID", "digit", "digit", "date", "text", "digit"];
obj.setId("obj");
obj.setCellModel(table);
obj.setHeaderCount(1);
obj.setHeaderText(myHeaders);
obj.setCellFormat([int, int1, price, ddate, str, num]);
obj.setColumnCount(6);
obj.setRowCount(12);
obj.setCellEditable(true);
obj.setSelectionMode("single-cell"); // default
document.write(obj);
IL
November 23,
Can anybody help me with this problem ?
IL
December 2,
"int" is a "javascript operator (reserved word)", so, use int0 or ... instead
December 2,
Okay, i'll use MyInt

but problem still unsolved. any minds ?
IL
December 3,
obj.onCellValidated=function(text, col, row ){
if(col==2){
obj.setCellValue(text, col, row );
obj.setCellText('$'+text, col, row);
}
}


http://www.activewidgets.com/javascript.forum.18285.1/formating-input-text-field.html
-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/
http://www.activewidgets.com/active.xml.table/
http://www.activewidgets.com/javascript.forum.4829.5/how-to-get-xml-as.html
December 4,

This topic is archived.

See also:


Back to support forum