EasyUI Forum
April 27, 2024, 06:56:15 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: Reminded of the patch  (Read 7141 times)
zhcnlei
Newbie
*
Posts: 14


View Profile Email
« on: March 04, 2015, 12:37:07 AM »

1.4.1.patch - 02/28/2015

While loading two datagrid, the second can not read data.

demo:

$(function(){
  $("#t1").datagrid({...});
  $("#t2").datagrid({...});
});

<table id="t1" />
<table id="t2" />

This patch will cause this problem, prior to the patch is normal.
« Last Edit: March 04, 2015, 12:38:45 AM by zhcnlei » Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: March 04, 2015, 01:34:07 AM »

How do you read data, please describe your issue in more detail.
Logged
zhcnlei
Newbie
*
Posts: 14


View Profile Email
« Reply #2 on: March 04, 2015, 10:31:37 PM »

I'm sorry, I made a mistake.
The new patch does not support object,it appears in my second datagrid.

demo:
formatter: function(value,row,index){
    if (row.user){
        return row.user.name; //In the new patch, the user is a string.
    }
}

error:Uncaught TypeError: Cannot read property 'name' of undefined.

Perhaps this is not a bug.

Turned out to be more than a formatter.
« Last Edit: March 09, 2015, 01:46:02 AM by zhcnlei » 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!