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);
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,