EasyUI Forum

General Category => General Discussion => Topic started by: chkaufmann on July 01, 2014, 07:25:41 AM



Title: Propertygrid - problem with onBeforeEdit event
Post by: chkaufmann on July 01, 2014, 07:25:41 AM
I take your example from here: http://www.jeasyui.com/demo/main/index.php?plugin=PropertyGrid&theme=default&dir=ltr&pitem=


and add an onBeforeEdit event, which returns false:


Code:
    <table id="pg" class="easyui-propertygrid" style="width:300px" data-options="
                url:'propertygrid_data1.json',
                method:'get',
                showGroup:true,
                scrollbarSize:0,
                onBeforeEdit: function(rowIndex, rowData) {
                  return false;
                }
            ">

This causes the following error:

Uncaught TypeError: Cannot read property 'target' of undefined jquery.easyui.all.js:12695

Is there something wrong with my code or is this an error in the library?

cu Christian


Title: Re: Propertygrid - problem with onBeforeEdit event
Post by: stworthy on July 01, 2014, 06:38:54 PM
Please download the patch file from http://www.jeasyui.com/download/downloads/jquery-easyui-1.3.6-patch.zip and include it to the page.
Code:
<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../jquery.easyui.patch.js"></script>