EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: rezzonico on October 06, 2015, 02:25:04 AM



Title: datagrid + combogrid + null
Post by: rezzonico on October 06, 2015, 02:25:04 AM
Hi all,

I am experiencing a problem when using a combogrid as editor for a datagrid field and the field value is null.

Please try the following example.
http://195.144.40.170/DDD/index.html

If you select the first or the third line all works ok.
But if you select the second line you receive the error "TypeError: _a33 is null".
The only difference is that in the second line there is a null value.

Regards
Miche


Title: Re: datagrid + combogrid + null
Post by: stworthy on October 06, 2015, 03:02:51 AM
Please try this code to solve this issue.
Code:
$('#dg').datagrid({
   onBeforeEdit: function(index,row){
      if (!row.OdL_ID){
         row.OdL_ID = '';
      }
   }
})


Title: Re: datagrid + combogrid + null
Post by: rezzonico on October 06, 2015, 05:44:07 AM
Thanks !