EasyUI Forum

General Category => Bug Report => Topic started by: zhcnlei on March 04, 2015, 12:37:07 AM



Title: Reminded of the patch
Post by: zhcnlei 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.


Title: Re: Reminded of the patch
Post by: jarry on March 04, 2015, 01:34:07 AM
How do you read data, please describe your issue in more detail.


Title: Re: Reminded of the patch
Post by: zhcnlei 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.