Categories | Question details Back To List | ||
Could i get a list of all the row ids, but in the exact same order as the rows ar ordered, after i ordered them by a column I click on a column header, and the grid rows are rearranged by that column How could i get a list of all the row ids as they are now. (Now as they are in the xml ) Answer posted by dhtmlx support on Sep 24, 2008 07:55 You can use onBeforeSorting event handler. For example: var ids = []; grid.attachEvent("onBeforeSorting",function(ind){ for (var i=0; i<grid.getRowsCount(); i++){ ids[ids.length] = grid.getRowId(i); } return true }) |