3.2.0

Grid column sorting problem using AW2.5

Hi All,
I have sorting problem with my grid.In my grid having
so many columns such like as Emp no,Emp name,Join Date such like.
When i sorting this coulmns is not sorted properly.

Emp no : 9994,9995,9996,9997,9998,9999

When i sort ascending it displayed like this
9999,9997,9995,9994,9998,9996

When i perform decending it displayed like this
9999,9997,9995,9994,9998,9996

Emp name column not properly sorted same like as Emp no even Join Date(mm/dd/yyyy) also.

Anyone help me to out this problem.
Sabi
November 5,
Please Check,
setCellFormat
http://www.activewidgets.com/aw.formats.number/
I took the sample from there and modify it like:
seems to do the trick ;-) HTH
<script>

    var myData = [
        ["Number formats", "123456789"],
  ["Number formats", "223456789"],
  ["Number formats", "323456789"],
  ["Number formats", "423456789"]
    ];

    var number = new AW.Formats.Number;
    number.setTextFormat("#########");

    // grid control
    var obj = new AW.UI.Grid;
    obj.setCellData(myData);
    obj.setCellFormat(number, 1); // numbers in the second column
    obj.setColumnCount(2);
    obj.setRowCount(4);
    document.write(obj);

</script>
Carlos
November 5,

This topic is archived.

See also:


Back to support forum