Categories | Question details Back To List | ||
dhtmlxGrid - Classic iterator with version 1.5 Hello! I'm using dhtmlxGrid version 1.5 and have enable pagination with "mygrid.enablePagingWT(true,15,3,"recinfoArea");" I need to use the Classic Iterator: for (var i=0; i<mygrid.getRowsCount(); i++){ // here i - index of row in grid do_something_with_row(index); } but I'm getting a script error "Object doesn't support this property or method" , Is this for my version? (1.5) And if the answer is Yes, how can I do it with version 1.5? I'm using now mygrid.getRowsNum() for iteration, but it give me problems with pagination. Thanks! Answer posted by Support on Jan 28, 2009 07:05 In dhtmlxgrid 1.5 paging buffer is separated from the grid logic so to access rows you need to render them first. Please try to use while(grid.addRowsFromBuffer()); //render rows from buffer for (var i=0; i<mygrid.getRowsNum(); i++){ // here i - index of row in grid do_something_with_row(index); } |