webismymind / editablegrid

EditableGrid is an open source Javascript library aimed at turning HTML tables into advanced editable components. It focuses on simplicity: only a few lines of code are required to get your first table up and running.
http://www.editablegrid.net
Other
795 stars 272 forks source link

Uncaught TypeError: Cannot read property 'insertRow' of undefined / Unable to get property 'insertRow' of undefined or null reference #96

Open RandallFlagg opened 9 years ago

RandallFlagg commented 9 years ago

I have the following code: var editableGrid2 = new EditableGrid("DemoGridJsData2"); var metadata =[]; metadata.push({ label: "", datatype: "boolean", editable: true }); metadata.push({ label: "ALabel", name: "AName", editable: true }); metadata.push({ label: "BLabel", name: "BName", editable: true }); editableGrid2.addRow(editableGrid2.data.length, { id: 0, values: { AName: "AAAAAAA", BName: "BBBBBBB" } });

This is what I get in chromium 45 and a similar error in IE11: Uncaught TypeError: Cannot read property 'insertRow' of undefined(…)EditableGrid._insert @ editablegrid-LATEST.js:1333EditableGrid.insert @ editablegrid-LATEST.js:1377EditableGrid.insertAfter @ editablegrid-LATEST.js:1389EditableGrid.append @ editablegrid-LATEST.js:1300EditableGrid.addRow @ editablegrid-LATEST.js:1312(anonymous function) @ VM1181:6InjectedScript._evaluateOn @ VM1094:904InjectedScript._evaluateAndWrap @ VM1094:837InjectedScript.evaluateOnCallFrame @ VM1094:963EditableGrid._insert @ editablegrid-LATEST.js:1333EditableGrid.insert @ editablegrid-LATEST.js:1377EditableGrid.insertAfter @ editablegrid-LATEST.js:1389EditableGrid.append @ editablegrid-LATEST.js:1300(anonymous function) @ VM1147:2InjectedScript._evaluateOn @ VM1094:904InjectedScript._evaluateAndWrap @ VM1094:837InjectedScript.evaluate @ VM1094:693