EasyUI Forum
July 08, 2024, 12:47:36 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: help - datagrid in dialog -ver 1.5.2  (Read 4028 times)
wayne
Newbie
*
Posts: 2


View Profile Email
« on: April 25, 2017, 02:18:34 AM »

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>
« Last Edit: April 25, 2017, 02:33:27 AM by wayne » Logged
jarry
Administrator
Hero Member
*****
Posts: 2269


View Profile Email
« Reply #1 on: April 25, 2017, 03:18:25 PM »

Please confirm whether the row that will be appended is not specified.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!