Hello All,
I think I have found a bug in addRowData (grid.base.js), when using jqGrid with a local array.
If the rowid is not supplied, or does not exist in the source array, there is an attempt to fallback to the internal id generation mechanism, as follows (lines 2961-2962):
try {rowid = data[cnm];}
catch (e) {rowid = $.jgrid.randId();}
when data[cnm] does not exist Javascript (at least with the latest version of Chrome, Firefox IExplorer and a Web Browser (debian) 2.30.6) will not throw an exception for the assignment, so there is nothing to “catch”.
The effect on the browser, is that the id of all the rows will be undefined.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top