:: Forum >>

Reading data from the grid after the order of the data has been changed by resorting

I am trying to print a report of the entier contents of the Grid in the order the grid is displaying it. I find that reading each cell item using the getText function only retrieves the data in the sort order the grid was origanlly loaded in.

I have used XML data to load the grid with.

How can i retrieve the data from the in the diaplayed order ??

Many Thanks

P.S.

The grid is great !!!
Benn Shelfer
Friday, July 2, 2004
I am experienceing the same issue. Anybody know of a workaround for this?
Mike Z
Tuesday, October 19, 2004
In the code below i represents the display order and index is the data model index:

obj.setAction("click", function(){
        var i, s = "", max = this.getRowProperty("count");
        
        for (i=0; i<max; i++){
            var index = this.getRowProperty("value", i);
            s += this.getDataProperty("text", index, 0) + " ";
        }
        
        alert(s);
    });
Alex (ActiveWidgets)
Wednesday, October 20, 2004

This topic is archived.


Back to support forum

Forum search