Categories | Question details Back To List | ||
move up and move down hi, just wondering if you have spotted this bug and whether you have a fix for it: i have a treegrid and when i use the move up and move down features i am running the method: mytreegrid.forEachRow( function(id) { .... } ); even though i moved a column up or down the order that is produced in this method doesnt change at all. for example if i have a tree with three items item 1 Answer posted by Support on Dec 18, 2007 01:54 mytreegrid.forEachRow just iterate through all rows, order of iteration not equal to current order of grid ( actually it is always use order which was in original XML file ) If you need to iterate through all rows in current order, you can use next code mygrid._h2.forEachChild(0,function(row){ var id=row.id; //any code here }); It will iterate through treegrid in actual order of rows Answer posted by Richard White on Dec 18, 2007 04:57 Thanks i will test now |