EasyUI Forum
October 18, 2025, 09:00:37 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: Propertygrid - problem with onBeforeEdit event  (Read 11007 times)
chkaufmann
Newbie
*
Posts: 15


View Profile Email
« 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
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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>
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!