Please help! I have a datagrid with add/remove button in dialog. When i clicked the add button to a row there's something wrong like below output in chrome console. Please help me figure it. thanks.
Uncaught TypeError: Cannot read property 'COL1' of undefined at Object.renderRow (VM12783 jquery.easyui.min.js:11304) at Object._84a (VM12783 jquery.easyui.min.js:11373) at Object.updateRow (VM12783 jquery.easyui.min.js:11381) at Object.refreshRow (VM12783 jquery.easyui.min.js:11354) at Object.insertRow (VM12783 jquery.easyui.min.js:11435) at _7a5 (VM12783 jquery.easyui.min.js:10652) at HTMLTableElement.<anonymous> (VM12783 jquery.easyui.min.js:11165) at Function.each (VM12782 jquery.min.js:2) at m.fn.init.each (VM12782 jquery.min.js:2) at Object.appendRow (VM12783 jquery.easyui.min.js:11164) renderRow @ VM12783 jquery.easyui.min.js:11304 _84a @ VM12783 jquery.easyui.min.js:11373 updateRow @ VM12783 jquery.easyui.min.js:11381 refreshRow @ VM12783 jquery.easyui.min.js:11354 insertRow @ VM12783 jquery.easyui.min.js:11435 _7a5 @ VM12783 jquery.easyui.min.js:10652 (anonymous) @ VM12783 jquery.easyui.min.js:11165 each @ VM12782 jquery.min.js:2 each @ VM12782 jquery.min.js:2 appendRow @ VM12783 jquery.easyui.min.js:11164 $.fn.datagrid @ VM12783 jquery.easyui.min.js:10805 append @ VM12795 index:1287 onclick @ VM12422 index:1272
PS: source code : <table id="dg" class="easyui-datagrid" title="Row Editing in DataGrid" style="width:700px;height:auto" data-options=" iconCls: 'icon-edit', singleSelect: true, toolbar: '#tb', onClickCell, onEndEdit: onEndEdit "> <thead> <tr> <th data-options="field:'COL1',width:80">Item ID</th> <th data-options="field:'listprice',width:80,align:'right',editor:{type:'numberbox',options:{precision:1}}">List Price</th> <th data-options="field:'unitcost',width:80,align:'right',editor:'numberbox'">Unit Cost</th> <th data-options="field:'attr1',width:250,editor:'textbox'">Attribute</th> <th data-options="field:'status',width:60,align:'center',editor:{type:'checkbox',options:{on:'P',off:''}}">Status</th> </tr> </thead> </table>
|