3.0 beta 2

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
July 2,
I am experienceing the same issue. Anybody know of a workaround for this?
Mike Z
October 19,
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)
October 20,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.