Categories | Question details Back To List | ||
Getting an error on grid.getCheckedRows() - bug? Hi. I downloaded the latest version of the grid control and plopped it into my previously working application (that is still under development). A line in my code that was previously working: var checkedRows=oGrid.getCheckedRows(0); Now returns an error: "mygrid is not defined" from module dhtmlxgrid.js. I've looked at dhtmlxgrid.js (Source versions) My previous working version was based on your timestamp 12/14/2007 3:14pm The new version is based on timestamp 03/20/2008 6:11pm By diffing the files, I see that the getCheckedRows() function has been rewritten in the more recent version. The new object "mygrid" doesn't appear anywhere else in the file so... I changed the line: mygrid.forEachRow(function(id){ to this.forEachRow(function(id){ ...and this seems to have fixed it. Can you confirm that this was a bug and I haven't missed something? Regards Chris Nockolds Answer posted by Support on May 02, 2008 05:59 >>Can you confirm that this was a bug and I haven't missed something? Yes, this is a bug, which already fixed in inner dev. version and will be released in next few days. Your change is fully correct. |