:: Forum >>

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
Sunday, November 23, 2008
Can anybody help me with this problem ?
IL
Tuesday, December 2, 2008
"int" is a "javascript operator (reserved word)", so, use int0 or ... instead
Tuesday, December 2, 2008
Okay, i'll use MyInt

but problem still unsolved. any minds ?
IL
Wednesday, December 3, 2008
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
Thursday, December 4, 2008

This topic is archived.


Back to support forum

Forum search