:: Forum >> Version 2 >>

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
Wednesday, November 5, 2008
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(number1); // numbers in the second column
    
obj.setColumnCount(2);
    
obj.setRowCount(4);
    
document.write(obj);

</
script>
 
Carlos
Wednesday, November 5, 2008



This topic is archived.

Back to support forum

Forum search